mkdir

From wikieduonline
Revision as of 20:50, 4 October 2021 by Welcome (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: