Forrest logo
tool overview
On this page you find all important commands for the CLI tool mkdir. If the command you are looking for is missing please ask our AI.

mkdir

mkdir command in Linux allows the user to create directories (also referred to as folders in some operating systems). This command can create multiple directories at once as well as set the permissions for the directories. It is important to note that the user executing this command must have enough permission to create a directory in the parent directory, or he/she may receive a ‘permission denied’ error.

List of commands for mkdir:

  • cgcreate:tldr:e250f cgcreate: Create a subgroup.
    $ mkdir /sys/fs/cgroup/${group_type}/${group_name}/${subgroup_name}
    try on your machine
    explain this command
  • linux:directory:make Create a single directory
    $ mkdir ${directory_name}
    try on your machine
  • linux:directory:make:recursive Create a directory (recursive).
    $ mkdir -p ${directory_name}
    try on your machine
  • mkdir:tldr:b3874 mkdir: Create directories with specific permissions.
    $ mkdir -m ${rwxrw-r--} ${path-to-directory1 path-to-directory2 ---}
    try on your machine
    explain this command
  • nix:tldr:17330 nix: Enable the `nix` command.
    $ mkdir -p ~/.config/nix; echo 'experimental-features = nix-command flakes' > ~/.config/nix/nix.conf
    try on your machine
    explain this command
tool overview