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, --context=CTX
21 set the SELinux security context of NAME to CTX
22
23 When COREUTILS_CHILD_DEFAULT_ACLS environment variable is set,
24 -m/--mode option respects default umask and ACLs, as it does in
25 Red Hat Enterprise Linux 7 by default
26
27 --help display this help and exit
28
29 --version
30 output version information and exit
31
32 Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and
33 they must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x
34 or 0X, it is interpreted as hexadecimal; otherwise, if it begins with
35 0, as octal; otherwise, as decimal. TYPE may be:
36
37 b create a block (buffered) special file
38
39 c, u create a character (unbuffered) special file
40
41 p create a FIFO
42
43 NOTE: your shell may have its own version of mknod, which usually
44 supersedes the version described here. Please refer to your shell's
45 documentation for details about the options it supports.
46
48 Written by David MacKenzie.
49
51 Report mknod bugs to bug-coreutils@gnu.org
52 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
53 General help using GNU software: <http://www.gnu.org/gethelp/>
54 Report mknod translation bugs to <http://translationproject.org/team/>
55
57 Copyright © 2010 Free Software Foundation, Inc. License GPLv3+: GNU
58 GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
59 This is free software: you are free to change and redistribute it.
60 There is NO WARRANTY, to the extent permitted by law.
61
63 mknod(2)
64
65 The full documentation for mknod is maintained as a Texinfo manual. If
66 the info and mknod programs are properly installed at your site, the
67 command
68
69 info coreutils 'mknod invocation'
70
71 should give you access to the complete manual.
72
73
74
75GNU coreutils 8.4 June 2018 MKNOD(1)