April 2005
Intermediate to advanced
720 pages
24h 28m
English
Unix also includes commands for copying and moving files: cp and mv. These commands enable you to copy or move one or more source files to a target file or directory.
✓ Tips
Why copy a file? Usually, to make a backup. For instance, before you edit a configuration file, you should create a backup copy of the original. This way you can revert back to the original if your edits “break” something in the file.
The mv command can also be used to rename a file.
The cp and mv commands support several options. You can learn more about them in the man pages for these commands. Type man cp or man mv and press
to view each command’s ...
Read now
Unlock full access