next up previous contents index
Next: rmdir Up: Appendix 1: Common UNIX Previous: mv   Contents   Index

rm

The remove command rm is used to delete files from the file system. After options this command expects a file name. Wild cards are permitted here, so the command can remove more than one file at a time. Several options for this command are:


\begin{hanging}
\item{-r} recursively remove files from sub-directories.
\item{-...
...existent files.
\item{-i} prompt for each file before removing it.
\end{hanging}

Example:

rm -r /home/fred/$*$

will remove all the files in all the directories of /home/fred.



Dale Scheetz