The rmdir command in Linux is used to delete empty directories (folders). It deletes only those directories that do not contain any subdirectories or files. If the directory is not empty, rmdir will issue an error message and will not delete it.
Using the rmdir command:
Example:
Some options of the rmdir command:
Note: Be careful when using the rmdir command, because it does not restore files or directories after deletion
There is no need to install the rmdir command, as it is built into most Linux distributions.
However, if for some reason the rmdir command is missing or unavailable on your system, you can install it as follows:
Note that the rmdir command may also be available in other packages, so you can use your distribution's package manager to find and install a package containing this command.
Apply the discount by inserting the promo code in the special field at checkout: