Difference between revisions of "Mkdir"

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

Revision as of 15:27, 28 March 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"

Options

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

Related commands

See also

Advertising: