Chapter 7: Advanced Directory and File Management

Commands:

Command Description Examples
cp Copies files -i, -r

$ cp ~/home/* /tmp

$ cp -i ~/home/user2/* /bkup

$ cp -ri ~/home/user2/* /bkup
mailx Interactive message processing system. $ mailx user2@cisco.com < dante.doc
mv Moves files -i

$ mv file1 file_april30

$ mv file1 /home/user2/bkup
noclobber Command which prevents the overwriting of files during redirection $ set -o noclobber
$ cat fruit > fruit2
/bin/ksh: fruit2: file already exists