man-pages/man1/mknod.1.html
2021-03-31 01:06:50 +01:00

113 lines
3.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of MKNOD</TITLE>
</HEAD><BODY>
<H1>MKNOD</H1>
Section: User Commands (1)<BR>Updated: September 2019<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
mknod - make block or character special files
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<B>mknod</B>
[<I>,OPTION/</I>]... <I>,NAME TYPE /</I>[<I>,MAJOR MINOR/</I>]
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
Create the special file NAME of the given TYPE.
<P>
Mandatory arguments to long options are mandatory for short options too.
<DL COMPACT>
<DT id="1"><B>-m</B>, <B>--mode</B>=<I>,MODE/</I><DD>
set file permission bits to MODE, not a=rw - umask
<DT id="2"><B>-Z</B><DD>
set the SELinux security context to default type
<DT id="3"><B>--context</B>[=<I>,CTX/</I>]<DD>
like <B>-Z</B>, or if CTX is specified then set the SELinux
or SMACK security context to CTX
<DT id="4"><B>--help</B><DD>
display this help and exit
<DT id="5"><B>--version</B><DD>
output version information and exit
</DL>
<P>
Both MAJOR and MINOR must be specified when TYPE is b, c, or u, and they
must be omitted when TYPE is p. If MAJOR or MINOR begins with 0x or 0X,
it is interpreted as hexadecimal; otherwise, if it begins with 0, as octal;
otherwise, as decimal. TYPE may be:
<DL COMPACT>
<DT id="6">b<DD>
create a block (buffered) special file
<DT id="7">c, u<DD>
create a character (unbuffered) special file
<DT id="8">p<DD>
create a FIFO
</DL>
<P>
NOTE: your shell may have its own version of mknod, which usually supersedes
the version described here. Please refer to your shell's documentation
for details about the options it supports.
<A NAME="lbAE">&nbsp;</A>
<H2>AUTHOR</H2>
Written by David MacKenzie.
<A NAME="lbAF">&nbsp;</A>
<H2>REPORTING BUGS</H2>
GNU coreutils online help: &lt;<A HREF="https://www.gnu.org/software/coreutils/">https://www.gnu.org/software/coreutils/</A>&gt;
<BR>
Report mknod translation bugs to &lt;<A HREF="https://translationproject.org/team/">https://translationproject.org/team/</A>&gt;
<A NAME="lbAG">&nbsp;</A>
<H2>COPYRIGHT</H2>
Copyright &#169; 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &lt;<A HREF="https://gnu.org/licenses/gpl.html">https://gnu.org/licenses/gpl.html</A>&gt;.
<BR>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
<A HREF="/cgi-bin/man/man2html?2+mknod">mknod</A>(2)
<P>
<BR>
Full documentation at: &lt;<A HREF="https://www.gnu.org/software/coreutils/mknod">https://www.gnu.org/software/coreutils/mknod</A>&gt;
<BR>
or available locally via: info '(coreutils) mknod invocation'
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="9"><A HREF="#lbAB">NAME</A><DD>
<DT id="10"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="11"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="12"><A HREF="#lbAE">AUTHOR</A><DD>
<DT id="13"><A HREF="#lbAF">REPORTING BUGS</A><DD>
<DT id="14"><A HREF="#lbAG">COPYRIGHT</A><DD>
<DT id="15"><A HREF="#lbAH">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:19 GMT, March 31, 2021
</BODY>
</HTML>