Saturday, November 2, 2013

Hidden Directories in Linux

In Linux, directory (folder) names starting with a '.' are not visible to users. To view these files, you need to use the command :

ls -as

This command displays all the directories within the current directory. If you want to rename the directory. Suppose the name of the directory is direc. Then :

mv -i .direc direc

You will find that the hidden directory is now visible.

No comments:

Post a Comment