Debian Codegraph @

upstream/debian-unstable/man1/mknod.1

raw
1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.50.1.
2 .TH MKNOD "1" "February 2026" "GNU coreutils 9.10" "User Commands"
3 .SH NAME
4 mknod \- make block or character special files
5 .SH SYNOPSIS
6 .B mknod
7 [\fI\,OPTION\/\fR]... \fI\,NAME TYPE \/\fR[\fI\,MAJOR MINOR\/\fR]
8 .SH DESCRIPTION
9 .\" Add any additional description here
10 .PP
11 Create the special file NAME of the given TYPE.
12 .PP
13 Mandatory arguments to long options are mandatory for short options too.
14 .TP
15 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mknod-m'\fB\-m, \-\-mode=\,MODE\fP\X'tty: link'\/\fR
16 set file permission bits to MODE, not a=rw \- umask
17 .TP
18 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mknod-Z'\fB\-Z\fP\X'tty: link'
19 set the SELinux security context to default type
20 .TP
21 \X'tty: link https://www.gnu.org/software/coreutils/manual/coreutils.html#mknod--context'\fB\-\-context[=CTX]\fP\X'tty: link'
22 like \fB\-Z\fR, or if CTX is specified then set the
23 SELinux or SMACK security context to CTX
24 .TP
25 \X'tty: link https://www.gnu.org/software/coreutils/mknod#mknod--help'\fB\-\-help\fP\X'tty: link'
26 display this help and exit
27 .TP
28 \X'tty: link https://www.gnu.org/software/coreutils/mknod#mknod--version'\fB\-\-version\fP\X'tty: link'
29 output version information and exit
30 .PP
31 Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they
32 must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X,
33 it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;
34 otherwise, as decimal. TYPE may be:
35 .TP
36 b
37 create a block (buffered) special file
38 .TP
39 c, u
40 create a character (unbuffered) special file
41 .TP
42 p
43 create a FIFO
44 .PP
45 Your shell may have its own version of mknod, which usually supersedes
46 the version described here. Please refer to your shell's documentation
47 for details about the options it supports.
48 .SH AUTHOR
49 Written by David MacKenzie.
50 .SH "REPORTING BUGS"
51 Report bugs to: bug\[email protected]
52 .br
53 GNU coreutils home page: <https://www.gnu.org/software/coreutils/>
54 .br
55 General help using GNU software: <https://www.gnu.org/gethelp/>
56 .br
57 Report any translation bugs to <https://translationproject.org/team/>
58 .SH "SEE ALSO"
59 \fBmknod\fP(2)
60 .PP
61 .br
62 Full documentation <https://www.gnu.org/software/coreutils/mknod>
63 .br
64 or available locally via: info \(aq(coreutils) mknod invocation\(aq
65 .PP
66 .br
67 Packaged by Debian (9.10\-1)
68 .br
69 Copyright \(co 2026 Free Software Foundation, Inc.
70 .br
71 License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
72 .br
73 This is free software: you are free to change and redistribute it.
74 .br
75 There is NO WARRANTY, to the extent permitted by law.