Removing files and directories

To remove a file use the command:

   rm [option] filename

To remove a directory use the command:

   rmdir directory_name
or
   rm -r directory_name

You cannot retrieve a file or directory that has been removed: it has been removed permanently


Top document