mkdir

From wikieduonline
Revision as of 06:06, 9 August 2022 by Sun (talk | contribs)
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
mkdir /tmp
mkdir: cannot create directory ‘/tmp’: File exists
mkdir -p /tmp
(no output)

Options

Related commands

See also

Advertising: