rmdir

Removes a directory.

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
OS X
brew install coreutils
Raspbian
apt-get install coreutils
Docker
docker run cmd.cat/rmdir rmdir powered by Commando

Removes a directory.

  • Remove directory, provided it is empty. Use `rm` to remove not empty directories:
    rmdir path/to/directory
  • Remove directories recursively (useful for nested dirs):
    rmdir -p path/to/directory

© tl;dr; authors and contributors