The rm Utility

Learn about the utility rm in detail.

We'll cover the following...

rm

The rm utility deletes files and directories. Specify the object to delete by its absolute or relative path. Here are examples of rm calls:

rm report.txt
rm ~/docs/reports/2019/report.txt

The first call deletes the report.txt file in the current directory. The second one deletes it in the ...

Removing files and directories