Deleting (removing) files and directories with rm

linux-penguinGetting to grips with the command line in Linux will mean that you'll always be able to manage practically any Linux distribution (and there are literally hundreds) without having to learn a new interface.  Command line instructions are often quicker to implement as well.


To remove a single file.

$ rm file

To recursively remove all files and directories in the current directory

$ rm -r *


Thanks for visiting.