Linux rm Command
Using the “rm” linux command allows you to delete a file or a directory. Knowing the options will help you in the long run and might prevent you from removing your entire hard drive!
Check the rm
options:
Some examples would be:
It might be useful to add in a trash
command that you can use which will
place items in a trash which is an extra step before the files or directories
are removed permanently:
Read more about it the rm manual pages.