Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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