Difference between revisions of "Mkdir"
Jump to navigation
Jump to search
Line 12: | Line 12: | ||
mkdir -p /path/to/your/new/dir | mkdir -p /path/to/your/new/dir | ||
mkdir: cannot create directory ‘/path’: [[Read-only file system]] | mkdir: cannot create directory ‘/path’: [[Read-only file system]] | ||
+ | |||
+ | mkdir /tmp | ||
+ | mkdir: cannot create directory ‘/tmp’: File exists | ||
+ | |||
+ | mkdir -p /tmp | ||
+ | (no output) | ||
===Options=== | ===Options=== |
Revision as of 06:04, 9 August 2022
wikipedia:mkdir command to create directories.
-p, --parents
Examples
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
-p, --parents makes parents directories if needed
Related commands
See also
Advertising: