How do you delete a directory and its contents in Linux?

Thu Ha

New member
How do you delete a directory and its contents in Linux?
Answer
To remove a directory and all its contents, including any subdirectories and files, use the rm command with the recursive option, -r . Directories that are removed with the rmdir command cannot be recovered, nor can directories and their contents removed with the rm -r command.
 

Tìm kiếm

Back
Top