tty.help
Appearance

Display preferences are saved in this browser.

mkdirMake a new directory

Create a directory. -p creates missing parent directories as needed.

Label
Changes files
Edited
2026-11-07
References
1 official

Example

mkdir ./drafts
  1. mkdirCommand nameAliases, shell functions, wrappers and PATH can change which program runs.
  2. ./draftsArgumentsFlags and operands as written. Quoting and expansion can change them before the program starts.
Illustrative syntax only. Do not run this without confirming the target and environment.

Things to check

Creates filesystem entries and may fail because of permissions or existing files. -p does not prove the chosen location is correct.

Before you run it

Confirm the parent directory and intended name.

Ask your agent

“Explain the entire command, including every flag and operator. What exact files, services or permissions could it affect, and how will we verify the result?”

Context is part of the command

A command name alone cannot determine safety. Aliases, shell functions, expansions, flags, permissions and working directory can change its behavior.

Explore a full command