Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Mkdir
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Options=== On Unix-like operating systems, <code>mkdir</code> takes options. The options are: * <code>-p (--parents)</code>: ''parents'' or ''path'', will also create all directories leading up to the given directory that do not exist already. For example, <code>mkdir -p a/b</code> will create directory <code>a</code> if it doesn't exist, then will create directory <code>b</code> inside directory <code>a</code>. If the given directory already exists, ignore the error. * <code>-m (--mode)</code>: ''mode'', specify the [[File system permissions#Numeric notation|octal permissions]] of directories created by <code>mkdir</code> . <code>-p</code> is most often used when using <code>mkdir</code> to build up complex directory hierarchies, in case a necessary directory is missing or already there. <code>-m</code> is commonly used to lock down temporary directories used by [[shell script]]s.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)