View hidden files and folders in Linux



Files and folders with names beginning with a dot [.] are hidden or invisible in Linux. They are by default not shown when listing the directory content using the ls command.

To view the hidden files and folders, simply add the -a (or –all) option to the ls command, as in the following example;

$ ls
file  folder
$ ls -a
.  ..  file  folder  .hiddenfile  .hiddenfolder

Do note that the command also display the files . and .. . These are files referring to the current and parent directory respectively, and they exist in every single folder in the system.

 


Posted on 19.12.2008 and categorized under linux

Comment Form


  • ayaz: Thanks for the tip.
  • TrueColorTech: Awesome Tip, I have been wanting that option for a while now!
  • iGadget: If this would work, it'd be really nice. However, when I use the command described in your post, I get the following error (twice): Could not conne
  • Alan: fedora 10 is so cool and i have fedora 10 too!
  • Kyle: Forgot to swing back by here after finding version 5.1.3 available, posted about it here: http://yokohead.com/2009/01/google-gears-in-firefox-x64-for

Categories