Get the App
SLTechnology News&Howtos  ›  Development  › 

How to delete an empty directory by linux

Shulou Source: shulou.com Published: 2022-06-01 02:18:42 10月25日 Update

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!

Tags: Empty directories content articles learning help commands subitems subdirectories easy to understand more organization knowledge editing industry information information channels channels research restrictions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn MariaDB Apple MySQL