- 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> (or rm -fr <dir_name>) .
Beware! This will recursively delete everything in that directory.
To recover files deleted accidentally in the labs, see Section 4.6.2.