1MKNOD(1) User Commands MKNOD(1)
2
3
4
6 mknod - make block or character special files
7
9 mknod [OPTION]... NAME TYPE [MAJOR MINOR]
10
12 Create the special file NAME of the given TYPE.
13
14 Mandatory arguments to long options are mandatory for short options
15 too.
16
17 -m, --mode=MODE
18 set file permission bits to MODE, not a=rw - umask
19
20 -Z set the SELinux security context to default type
21
22 --context[=CTX]
23 like -Z, or if CTX is specified then set the SELinux or SMACK
24 security context to CTX
25
26 --help display this help and exit
27
28 --version
29 output version information and exit
30
31 Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and
32 they must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x
33 or 0X, it is interpreted as hexadecimal; otherwise, if it begins with
34 0, as octal; otherwise, as decimal. TYPE may be:
35
36 b create a block (buffered) special file
37
38 c, u create a character (unbuffered) special file
39
40 p create a FIFO
41
42 NOTE: your shell may have its own version of mknod, which usually
43 supersedes the version described here. Please refer to your shell's
44 documentation for details about the options it supports.
45
47 Written by David MacKenzie.
48
50 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
51 Report any translation bugs to <https://translationproject.org/team/>
52
54 Copyright © 2019 Free Software Foundation, Inc. License GPLv3+: GNU
55 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
56 This is free software: you are free to change and redistribute it.
57 There is NO WARRANTY, to the extent permitted by law.
58
60 mknod(2)
61
62 Full documentation <https://www.gnu.org/software/coreutils/mknod>
63 or available locally via: info '(coreutils) mknod invocation'
64
65
66
67GNU coreutils 8.31 October 2019 MKNOD(1)