How To Install Rmdir In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

How To Install Rmdir In Debian, Ubuntu, Alpine, Arch, Kali, CentOS, Fedora, Raspbian And MacOS?

rmdir

Removes a directory.

Maintainer: Michael Stone



Section: utils

Install rmdir

  • Debian apt-get install coreutils Click to copy
  • Ubuntu apt-get install coreutils Click to copy
  • Alpine OS apk add coreutils Click to copy
  • Arch Linux pacman -S coreutils Click to copy
  • Kali Linux apt-get install coreutils Click to copy
  • CentOS yum install coreutils Click to copy
  • Fedora dnf install coreutils Click to copy
  • Raspbian apt-get install coreutils Click to copy
  • macOS brew install coreutils Click 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 copy
Remove 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 2024 package in your OS.