How do I empty a directory in Linux?

Đăng Khánh

New member
How do I empty a directory in Linux?
Answer
You can delete a directory in Linux using
the rm command
. The rm command can delete a directory if it contains files as long as you use the -r flag. If a directory is empty, you can delete it using the rm or rmdir commands.
 

Tìm kiếm

Back
Top