rmdir

Remove directories without files. See also: rm. More information: <https://www.gnu.org/software/coreutils/rmdir>.

Install

All systems
curl cmd.cat/rmdir.sh
Debian Debian
apt-get install coreutils
Ubuntu
apt-get install coreutils
Alpine
apk add coreutils
Arch Arch Linux
pacman -S coreutils
image/svg+xml Kali Linux
apt-get install coreutils
CentOS
yum install coreutils
Fedora
dnf install coreutils
Windows (WSL2)
sudo apt-get update sudo apt-get install coreutils
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/rmdir rmdir powered by Commando

Remove directories without files. See also: rm. More information: <https://www.gnu.org/software/coreutils/rmdir>.

  • Remove specific directories:
    rmdir path/to/directory1 path/to/directory2 ...
  • Remove specific nested directories recursively:
    rmdir -p path/to/directory1 path/to/directory2 ...

© tl;dr; authors and contributors