1MKDIR(1) User Commands MKDIR(1)
2
3
4
6 mkdir - make directories
7
9 mkdir [OPTION]... DIRECTORY...
10
12 Create the DIRECTORY(ies), if they do not already exist.
13
14 Mandatory arguments to long options are mandatory for short options
15 too.
16
17 -m, --mode=MODE
18 set file mode (as in chmod), not a=rwx - umask
19
20 -p, --parents
21 no error if existing, make parent directories as needed, with
22 their file modes unaffected by any -m option.
23
24 -v, --verbose
25 print a message for each created directory
26
27 -Z set SELinux security context of each created directory to the
28 default type
29
30 --context[=CTX]
31 like -Z, or if CTX is specified then set the SELinux or SMACK
32 security context to CTX
33
34 --help display this help and exit
35
36 --version
37 output version information and exit
38
40 Written by David MacKenzie.
41
43 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
44 Report any translation bugs to <https://translationproject.org/team/>
45
47 Copyright © 2022 Free Software Foundation, Inc. License GPLv3+: GNU
48 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
49 This is free software: you are free to change and redistribute it.
50 There is NO WARRANTY, to the extent permitted by law.
51
53 mkdir(2)
54
55 Full documentation <https://www.gnu.org/software/coreutils/mkdir>
56 or available locally via: info '(coreutils) mkdir invocation'
57
58
59
60GNU coreutils 9.1 May 2023 MKDIR(1)