mkdir

From wikieduonline
Revision as of 01:17, 4 February 2022 by Welcome (talk | contribs) (→‎Examples)
Jump to navigation Jump to search

wikipedia:mkdir command to create directories.

-p, --parents

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: