Difference of using rm and rm -r to remove directories


#1

Hi,

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.


#2

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


#3

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