For hiding files and folders in Ubuntu you have to follow the below steps.
First create an empty document named ".hidden" in the same directory, you want to hide the files and folders. [right click -> create new document -> empty document]
Then open this ".hidden" file in text editor and list the files and folders line by line those you want to hide and save it.
Now press "Ctrl + h" to hide or show your hidden files and folders vice versa.
After pressing "Ctrl + h".