next up previous contents
Next: Creating a directory (mkdir) Up: Files and the File Previous: Between UNIX and the   Contents

Removing files (rm)

If there is a file you wish to get rid of, use the command rm. Make sure you are certain you want to remove the file because once it has been removed, you can't get it back (except perhaps off system backup tapes).

malama% rm params

To make the computer interactively inquire for confirmation before files are deleted, use:

malama% rm -i params

The -i option works the same way for cp and mv, requesting confirmation before affecting a file which already exists (hence, again you may wish to ``alias'' rm to ''rm -i'').



h.stilmack@jach.hawaii.edu