How to delete an empty directory by linux
This article mainly shows you "linux how to delete an empty directory", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "linux how to delete an empty directory" this article.
Delete an empty directory
If you want to delete all empty directories, use the following command:
[root@localhost test] # find. -type d-empty-delete
-empty only restricts empty directories
-delete deletes all empty directories, including subdirectories
The above is all the contents of the article "how to delete an empty directory in linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!