Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Would need some help on viewing & Moving the Hidden Files & Folders.

share|improve this question
Do you want to perform these actions from a command line or within a specific application? – Trey Hunner May 7 '10 at 21:05
A little more detail? Moving a single file or en-masse? – Avery Payne May 7 '10 at 23:30

Hidden files are just files with a . in the beginning of their name.

To list files, including hidden ones from a command line:

ls -a

To list only hidden files:

ls -a .*

Hidden files can be moved/copied/removed just like any other file:

mv .log .log_old # move a file
cp .log .log_backup # copy a file
rm .log # remove a file
share|improve this answer
.* matches . and .., so you could get quite a few extra entries. – Ignacio Vazquez-Abrams May 8 '10 at 19:13
@Ignacio: What is the proper way to show only hidden files and not . and ..? – Trey Hunner May 8 '10 at 19:34
You have to use .[^.]* and ..?*. Setting the nullglob shell option may be helpful to suppress error messages if no files match one of the patterns. – Ignacio Vazquez-Abrams May 8 '10 at 21:29

If you are using Gnome and the Nautilus file manager, you can select "Show Hidden Files" in the "View" menu. The keyboard shortcut is Ctrl-H.

On the command line the option to "ls" is "-a" to see hidden files (the ones with '.' as the first character in the filename).

share|improve this answer

Following up on Trey's answer, if you want to copy everything in a given directory, including the hidden files, you should be fine with:

  cp -r /something/ /somenewplace/
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.