mkdir

Create directories and set their permissions. More information: <https://www.gnu.org/software/coreutils/mkdir>.

Install

All systems
curl cmd.cat/mkdir.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/mkdir mkdir powered by Commando

Create directories and set their permissions. More information: <https://www.gnu.org/software/coreutils/mkdir>.

  • Create specific directories:
    mkdir path/to/directory1 path/to/directory2 ...
  • Create specific directories and their [p]arents if needed:
    mkdir -p path/to/directory1 path/to/directory2 ...
  • Create directories with specific permissions:
    mkdir -m rwxrw-r-- path/to/directory1 path/to/directory2 ...

© tl;dr; authors and contributors