How To Install Rmdir In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?
Maintainer: Michael Stone
Email: [email protected] .
Website: https://gnu.org/software/coreutils
Section: utils
Install rmdir
-
Debian
apt-get install coreutilsClick to copy -
Ubuntu
apt-get install coreutilsClick to copy -
Alpine OS
apk add coreutilsClick to copy -
Arch Linux
pacman -S coreutilsClick to copy -
Kali Linux
apt-get install coreutilsClick to copy -
CentOS
yum install coreutilsClick to copy -
Fedora
dnf install coreutilsClick to copy -
Raspbian
apt-get install coreutilsClick to copy -
macOS
brew install coreutilsClick to copy
Removes a directory.
How to use rmdir?
Below are few example commands for rmdir that you can use in the terminal.
Remove directory, provided it is empty. Use `rm` to remove not empty directories:rmdir path/to/directoryClick to copyRemove directories recursively (useful for nested dirs):rmdir -p path/to/directoryClick to copy
To install the latest version of rmdir in your favorite operating system just copy the rmdir installation command from above and paste it into terminal. It will download and install the latest version of rmdir 2026 package in your OS.




