How to hide and unhide files in Linux?

31 Mar 2014

If you are new to linux OS, it’s a common mistake to add a (.) in front of your files and suddenly the file disappears. In Linux filenames starting with a dot (.) are hidden. You can intentionally make a folder or file hidden by renaming it.mv filename .filename If you want to view you hidden files or folders, first go to the location where the file resides using cd command.

cd /root/Desktop/

Then list all files and folders using ls command.

ls -a

If you want to permanently unhide then use mv command again.

mv .filename filename