April 2005
Intermediate to advanced
720 pages
24h 28m
English
Unix includes two commands that you can use to delete files and directories: rm (remove) and rmdir (remove directory).
Warning!
rm may be the most dangerous command in Unix. Because Unix doesn’t have a Trash that lets you recover mistakenly deleted files, when you delete a file, it’s gone forever.
✓ Tips
There are two options that you may want to use with the rm command:
-i tells the rm command to ask permission before deleting each file (Figure 24). You must press
and then
at each prompt to delete ...
Read now
Unlock full access