Next: Symbolic links and hard
Up: Files and directories
Previous: Renaming a file or
- To remove a file in your current directory type rm <file_name>.
- To remove an empty directory type rmdir <dir_name>.
- To remove a nonempty directory type rm -fr <dir_name>.
Beware! This will recursively delete everything in that directory.
To recover files deleted accidentally, see Section 4.3.