mkdir <dir>Creates a directory.
Example
mkdir notesCreates directories, including parent paths and with specific permissions.
sudo apt install coreutilsmkdir <dir>Creates a directory.
Example
mkdir notesmkdir -p <path>Creates the full path, including missing parents; no error if it exists.
Example
mkdir -p cases/2026/acme/evidencemkdir <a> <b> <c>Creates several directories at once.
Example
mkdir logs scans lootmkdir -p <dir>/{<a>,<b>,<c>}Brace expansion builds a whole project layout in one go.
Example
mkdir -p engagement/{recon,exploit,loot,report}mkdir -m <mode> <dir>Sets permissions at creation — 700 means only the owner can enter.
Example
mkdir -m 700 privatemkdir -v <dir>Prints each directory created.
mkdir -p <dir> && cd <dir>Creates a directory and enters it.
Example
mkdir -p work && cd workmktemp -dCreates a uniquely named temporary directory and prints its path — safer than a fixed name in /tmp.
The shell built-in that changes the current directory, including shortcuts for home, previous and parent directories.
Changes file permissions using symbolic or octal modes, including setuid, setgid and sticky bits.
Lists directory contents with sizes, permissions, owners, timestamps and hidden files.
Prints the full path of the current working directory, optionally resolving symbolic links.
Copies files and directories, preserving attributes when asked.
Moves or renames files and directories.