The cp Command
Two options:
- -i overwrite verification
- -r copy directories and contents
With more than two arguments, the last must be an existing directory.
The mv Command
- Does not really “move” data, unless moving to a different partition. Otherwise, only the reference is being moved.
- Automatically recursive, so no -r.
- -i option like the cp command provides overwrite verification.
The ln Command
- Creates new point to access the same data.
- Does not create copy of data.
- No new inode, except with -s.
- Must use -s to cross partition boundaries or with directories.
- -i option will warn you if you are overwriting information.
- Different behavior between hard and soft links.
The rm Command
- No way to undo.
- Options
- -i will prompt you for verification before you overwrite or trash a file.
- -r
- Some people like to create an alias that automatically runs.