File: mknod.1

package info (click to toggle)
fileutils 3.16-5.3
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 3,968 kB
  • ctags: 3,192
  • sloc: ansic: 32,790; yacc: 1,032; makefile: 280; sh: 277; sed: 93; perl: 66
file content (49 lines) | stat: -rw-r--r-- 1,295 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.TH MKNOD 1 "GNU File Utilities" "FSF" \" -*- nroff -*-
.SH NAME
mknod \- make special files
.SH SYNOPSIS
.B mknod
[options] filename {bcu} major minor
.br
.B mknod
[options] filename p
.br
Options:
.br
[\-m mode] [\-\-mode=mode] [\-\-help] [\-\-version]
.SH DESCRIPTION
This documentation is no longer being maintained and may be inaccurate
or incomplete.  The Texinfo documentation is now the authoritative source.
.PP
This manual page
documents the GNU version of
.BR mknod .
.B mknod
creates a FIFO, character special file, or block special file
with the given file name.  By default, the mode of
created files is 0666 minus the bits set in the umask.
.PP
The argument after
.I filename
specifies the type of file to make:
.nf
p for a FIFO
b for a block (buffered) special file
c or u for a character (unbuffered) special file
.fi
.PP
When making a block or character special file, the major and minor
device numbers must be given after the file type.
.SS OPTIONS
.TP
.I "\-m, \-\-mode mode"
Set the mode of created files to
.IR mode ,
which is symbolic as in chmod and uses the default mode as the point of
departure.
.TP
.I "\-\-help"
Print a usage message on standard output and exit successfully.
.TP
.I "\-\-version"
Print version information on standard output then exit successfully.