tldr/pages/common/mkdir.md

390 B

mkdir

Creates a directory. More information: https://www.gnu.org/software/coreutils/mkdir.

  • Create a directory in current directory or given path:

mkdir {{path/to/directory}}

  • Create multiple directories in the current directory:

mkdir {{directory_1 directory_2 ...}}

  • Create directories recursively (useful for creating nested dirs):

mkdir -p {{path/to/directory}}