How to hide folders or files

by RameshKumar 2008-05-08 16:31:37

In linux you can see the hidden files by using the command
ls -a
Which list all the files inside a folder.

We can hide all the files by naming the file with a dot(.) infront of the file name
eg:: .ramesh.txt

now if you list the file by using ls -l or ls command you will not be able to see the file.

The hidden folders can also be created in the same manner

eg:: mkdir .dirname

mkdir is the make directory command and .dirname is your folder name.

Tagged in:

1524
like
0
dislike
0
mail
flag

You must LOGIN to add comments