English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The Linux rmdir command (full English name: remove directory) is used to delete empty directories.
rmdir [-p] dirName
Parameters:
Delete the subdirectory named AAA under the working directory:
rmdir AAA
Delete the subdirectory named Test in the BBB directory under the working directory. If the BBB directory becomes empty after Test is deleted, BBB will also be deleted.
rmdir -p BBB/Test