How to remove an empty directory?

To remove an empty directory in Linux, you can use the rmdir command. Here’s the command:

rmdir directory_name

This command will only work if the directory is empty. If the directory contains files or other directories, you will receive an error message.

0 Comments

no data
Be the first to share your comment!