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
46 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
47 Report mknod translation bugs to <http://translationproject.org/team/>
48
50 Written by David MacKenzie.
51
53 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
54 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
55 This is free software: you are free to change and redistribute it.
56 There is NO WARRANTY, to the extent permitted by law.
57
59 mknod(2)
60
61 The full documentation for mknod is maintained as a Texinfo manual. If
62 the info and mknod programs are properly installed at your site, the
63 command
64
65 info coreutils 'mknod invocation'
66
67 should give you access to the complete manual.
68
69
70
71GNU coreutils 8.22 October 2018 MKNOD(1)