How do I get rid of a folder with some contents inside without any confirmation to remove the files?

How do I get rid of a folder with some contents inside without any confirmation to remove the files?
Answer
By default, when used without any option rm does not remove directories. To delete an empty directory, use the -d ( –dir ) option and to delete a non-empty directory, and all of its contents use
the -r ( –recursive or -R ) option
.
 

Tìm kiếm

Back
Top