Difference between revisions of "Mkdir"

From wikieduonline
Jump to navigation Jump to search
Line 29: Line 29:
 
* <code>[[aws s3 mb]]</code>
 
* <code>[[aws s3 mb]]</code>
 
* <code>[[touch]]</code>
 
* <code>[[touch]]</code>
 +
* <code>[[mkcd]]</code> [[omz]]
  
 
== See also ==
 
== See also ==

Revision as of 20:18, 28 September 2022

wikipedia:mkdir command to create directories.

-p, --parents

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: