How do I remove a full directory in Linux?

April 16th, 2009 by @HKw@! | Filed under Unix.

To remove a directory that is full with other files and/or other directories, use the below command.

$ rm -rf directory

rmdir command can use to remove the empty DIRECTORY(ies)

$ rmdir directory

Share

Leave a Reply

BlogCatalog