mkdir

From wikieduonline
Revision as of 05:52, 9 August 2022 by Sun (talk | contribs) (→‎Examples)
Jump to navigation Jump to search

Examples

  • mkdir -p /path/to/your/new/dir
  • mkdir ~/.ssh
  • mkdir -p "$(dirname "$1")" && touch "$1"
mkdir -p /path/to/your/new/dir
mkdir: cannot create directory ‘/path’: Read-only file system

Options

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

Related commands

See also

Advertising: