Difference of using rm and rm -r to remove directories


I am learning about Command Lines. I am confused between rm and rm -r.

What is the difference when we remove files using the recursive modification instead of rm only.

The difference, as you said yourself, is that with -r it removes recursively.

Most commands supply a bit of documentation about how to use them. Try entering:

$ man rm

To display its manual page

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.