How would you remove a directory that is not empty * 5 points?

Minh Phượng

New member
How would you remove a directory that is not empty * 5 points?
Answer
There are two commands that one can use to delete non empty directories in Linux operating system:
  1. rmdir command – Delete directory only if it is empty.
  2. rm command – Remove directory and all files even if it is NOT empty by passing the -r to the rm to remove a directory that is not empty.
 

Tìm kiếm

Back
Top