0323-0325.html

来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 382 行

HTML
382
字号
<HTML>



<HEAD>

<TITLE>Linux Complete Command Reference:User Commands:EarthWeb Inc.-</TITLE>

</HEAD>

<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
<SCRIPT>
<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width +
',height=' + height + ',resizable=1,scrollbars=yes');
}
//-->
</SCRIPT>
</HEAD>

 -->




<!-- ISBN=0672311046 //-->

<!-- TITLE=Linux Complete Command Reference//-->

<!-- AUTHOR=Red Hat//-->

<!-- PUBLISHER=Macmillan Computer Publishing//-->

<!-- IMPRINT=Sams//-->

<!-- CHAPTER=01 //-->

<!-- PAGES=0001-0736 //-->

<!-- UNASSIGNED1 //-->

<!-- UNASSIGNED2 //-->



<P><CENTER>

<a href="0319-0322.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0326-0328.html">Next</A></CENTER></P>







<A NAME="PAGENUM-323"><P>Page 323</P></A>





<P><B>AUTHOR</B></P>





<P>Copyright &quot; 1989 by Jef Poskanzer.

</P>



<P>24 January 1989

</P>



<H3><A NAME="ch01_ 172">

mkdir

</A></H3>



<P>mkdir&#151;Make directories

</P>



<P><B>SYNOPSIS</B></P>





<!-- CODE SNIP //-->

<PRE>mkdir [_p] [_m mode] [--parents] [--mode=mode] [--help] [--version] dir...

</PRE>

<!-- END CODE SNIP //-->



<P><B>DESCRIPTION</B></P>



<P>This manual page documents the GNU version of

mkdir. mkdir creates a directory with each given name. By default,

the mode of created directories is 0777 minus the bits set in the umask.

</P>



<P><B>OPTIONS</B></P>



<TABLE>



<TR><TD>

_m, --mode mode

</TD><TD>

Set the mode of created directories to

mode, which is symbolic as in chmod and uses the default mode as

the point of departure.

</TD></TR><TR><TD>

_p, --parents

</TD><TD>

Ensure that each given directory exists. Create any missing parent directories for each argument.

Parent directories default to the umask modified by

u+wx. Do not consider an argument directory that

already exists to be an error.

</TD></TR><TR><TD>

--help

</TD><TD>

Print a usage message on standard output and exit successfully.

</TD></TR><TR><TD>

--version

</TD><TD>

Print version information on standard output then exit successfully.

</TD></TR></TABLE>



<P>GNU File Utilities

</P>



<H3><A NAME="ch01_ 173">

mkdirhier

</A></H3>



<P>mkdirhier&#151;Make a directory hierarchy

</P>



<P><B>SYNOPSIS</B></P>



<!-- CODE SNIP //-->

<PRE>mkdirhier directory ...

</PRE>

<!-- END CODE SNIP //-->



<P><B>DESCRIPTION</B></P>



<P>The mkdirhier command creates the specified directories. Unlike

mkdir, if any of the parent directories of the

specified directory do not exist, it creates them as well.

</P>



<P><B>SEE ALSO</B></P>





<!-- CODE SNIP //-->

<PRE>mkdir(1)

</PRE>

<!-- END CODE SNIP //-->



<P>X Version 11 Release 6

</P>



<H3><A NAME="ch01_ 174">

mkfifo

</A></H3>



<P>mkfifo&#151;Make FIFOs (named pipes)

</P>



<P><B>SYNOPSIS</B></P>





<!-- CODE SNIP //-->

<PRE>mkfifo [_m mode] [--mode=mode] [--help] [--version] filename...

</PRE>

<!-- END CODE SNIP //-->





<A NAME="PAGENUM-324"><P>Page 324</P></A>



<P><B>DESCRIPTION</B></P>



<P>This manual page documents the GNU version of

mkfifo. mkfifo creates a FIFO with each given name. By default, the

mode of created FIFOs is 0666 minus the bits set in the umask.

</P>



<P><B>OPTIONS</B></P>



<TABLE>



<TR><TD>

_m, --mode mode

</TD><TD>

Set the mode of created FIFOs to

mode, which is symbolic as in chmod and uses the default mode as

the point of departure.

</TD></TR><TR><TD>

--help

</TD><TD>

Print a usage message on standard output and exit successfully.

</TD></TR><TR><TD>

--version

</TD><TD>

Print version information on standard output then exit successfully.

</TD></TR></TABLE>





<P>GNU File Utilities

</P>



<H3><A NAME="ch01_ 175">

mkmanifest

</A></H3>



<P>mkmanifest&#151;Create a shell script to restore UNIX filenames

</P>



<P><B>SYNOPSIS</B></P>



<!-- CODE SNIP //-->

<PRE>mkmanifest [ FILES ]

</PRE>

<!-- END CODE SNIP //-->



<P><B>DESCRIPTION</B></P>



<P>mkmanifest creates a shell script that will aid in the restoration of UNIX filenames that got clobbered by the

MS-DOS filename restrictions. MS-DOS filenames are restricted to eight-character names, three-character extensions, uppercase

only, no device names, and no illegal characters.

</P>



<P>The mkmanifest program is compatible with the methods used in

pcomm, arc, and mtools to change perfectly good

UNIX filenames to fit the MS-DOS restrictions.

</P>





<P><B>Example</B></P>



<P>Say you want to copy the following UNIX FILES to an MS-DOS disk (using the

mcopy command):

</P>



<!-- CODE SNIP //-->

<PRE>very_long_name

2.many.dots

illegal:

good.c

prn.dev

Capital

</PRE>

<!-- END CODE SNIP //-->



<P>mcopy will convert the names to

</P>



<!-- CODE SNIP //-->

<PRE>very_lon

2xmany.dot

illegalx

good.c

xprn.dev

capital

</PRE>

<!-- END CODE SNIP //-->



<P>The command:

</P>



<!-- CODE SNIP //-->

<PRE>mkmanifest very_long_name 2.many.dots illegal: good.c prn.dev Capital &gt; manifest

</PRE>

<!-- END CODE SNIP //-->





<P>would produce the following:

</P>



<!-- CODE SNIP //-->

<PRE>mv very_lon very_long_name

mv 2xmany.dot 2.many.dots

mv illegalx illegal:

mv xprn.dev prn.dev

mv capital Capital

</PRE>

<!-- END CODE SNIP //-->



<A NAME="PAGENUM-325"><P>Page 325</P></A>



<P>Notice that good.c did not require any conversion, so it did not appear in the output.

</P>



<P>Suppose I've copied these FILES from the disk to another UNIX system, and I now want the FILES back to their original

names. If the file manifest (the output captured above) was sent along with those FILES, it could be used to convert the filenames.

</P>



<P><B>BUGS</B></P>



<P>The short names generated by mkmanifest follow the old convention (from

mtools-2.0.7) and not the one from Windows 95 and

mtools-3.0.

</P>



<P><B>SEE ALSO</B></P>



<!-- CODE SNIP //-->

<PRE>arc(1), pcomm(1), mtools(1)

</PRE>

<!-- END CODE SNIP //-->



<P>Local

</P>



<H3><A NAME="ch01_ 176">

mknod

</A></H3>



<P>mknod&#151;Make special FILES

</P>



<P><B>SYNOPSIS</B></P>



<!-- CODE SNIP //-->

<PRE>mknod [OPTIONS] filename {bcu} major minor

mknod [OPTIONS] filename p

</PRE>

<!-- END CODE SNIP //-->





<P>OPTIONS:

</P>



<!-- CODE SNIP //-->

<PRE>[_m mode] [--mode=mode] [--help] [--version]

</PRE>

<!-- END CODE SNIP //-->



<P><B>DESCRIPTION</B></P>





<P>This manual page documents the GNU version of

mknod. mknod creates a FIFO, character special file, or block special file

with the given filename. By default, the mode of created FILES is 0666 minus the bits set in the umask.

</P>



<P>The argument after filename specifies the type of file to make:

</P>



<P>p for a FIFO

</P>



<P>b for a block (buffered) special file

</P>



<P>c or u for a character (unbuffered) special file

</P>



<P>When making a block or character special file, the major and minor device numbers must be given after the file type.

</P>



<P><B>OPTIONS</B></P>



<TABLE>



<TR><TD>

_m, --mode mode

</TD><TD>

Set the mode of created FILES to

mode, which is symbolic as in chmod and uses the default mode as the

point of departure.

</TD></TR><TR><TD>

--help

</TD><TD>

Print a usage message on standard output and exit successfully.

</TD></TR><TR><TD>

--version

</TD><TD>

Print version information on standard output then exit successfully.

</TD></TR></TABLE>



<P>GNU File Utilities

</P>



<H3><A NAME="ch01_ 177">

mlabel

</A></H3>



<P>mlabel&#151;Make an MS-DOS volume label

</P>



<P><B>SYNOPSIS</B></P>



<!-- CODE SNIP //-->

<PRE>mlabel [ -v ] drive: [ new_label ]

</PRE>

<!-- END CODE SNIP //-->







<P><CENTER>

<a href="0319-0322.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0326-0328.html">Next</A></CENTER></P>







</td>
</tr>
</table>

<!-- begin footer information -->







</body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?