mkdir

From wikieduonline
Revision as of 21:12, 4 October 2021 by Chmod15 (talk | contribs)
Jump to navigation Jump to search

wikipedia:mkdir command to create directories.

Examples

  • mkdir -p /path/to/your/new/dir
  • mkdir ~/.ssh
  • mkdir -p "$(dirname "$1")" && touch "$1"

Options

  • -p, --parents makes parents directories if needed

Related commands

See also

Advertising: