PDA

View Full Version : How to copy hidden files use 'cp' command?



Omak
05-11-2003, 11:21 AM
I'm very new to linux and I really don't know how to copy hidden files from one directory to another directory use 'cp' command.

Ghandalfar
05-11-2003, 12:05 PM
you could do:

cp /orig/dir/.* /other/dir/.

hidden files are prefixed with dot so this command just selects everything that starts with dot and copies it to /other/dir

Omak
05-11-2003, 12:15 PM
you could do:

cp /orig/dir/.* /other/dir/.

hidden files are prefixed with dot so this command just selects everything that starts with dot and copies it to /other/dir

Ghandalfar
Thank you very much.

=========