next up previous contents
Next: Looking at files Up: First Steps into Previous: Moving files

Deleting files and directories

      You now have an ugly rhyme developing with the use of the ls command. To delete a file, use the rm command. (`` rm'' stands for ``remove'').

We're left with nothing but shells, but we won't complain. Note that rm by default won't prompt you before deleting a file---so be careful.

      A related command to rm is rmdir. This command deletes a directory, but only if the directory is empty. If the directory contains any files or subdirectories, rmdir will complain.



Ross Biro
Tue May 23 13:39:28 PDT 1995