next up previous

1.5.9 rm

Removes or deletes a file. WARNING: once removed, a file is GONE FOREVER.

rm work.f
removes the file work.f from your current working directory.
rm *.f
removes all files ending in .f
rm -i a*
removes all files beginning with ``a", but first inquires whether you wish to remove a file before actually removing that file. (An answer of ``y" or ``n" is expected).
rm -ir mydirectory
removes every file and subdirectory under and including mydirectory recursively. Before each file or directory is removed, the user is asked whether that file or directory should be removed.