Hiding Files in Linux

Tags:
Printer-friendly versionSend to friend

You want to hide some private data because your friend is going to use your computer and you are using Linux.

So how do I do that ??

Here's How -

Rename your directory / file so that it is preceded by a dot (.) And you're done !

$ mv <dir-or-file-name> .<dir-or-file-name>

How do I list these files ?

$ ls -a

Nilesh Govindrajan

Site & Server Administrator
iTech7

Comments

yup. For those who aren't

yup. For those who aren't comfortable with the terminal and have Gnome running on the GNU's you can do it on the UI as stated below

Hit the directory with the mouse pointer, then CTRL + H, all your hiden files and folders show up with a "." preceding the file name or folder name. to hide files, right-click>rename and precede the file name or folder name with a "."

Syndicate content