📄 0319-0322.html
字号:
<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="0315-0318.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0323-0325.html">Next</A></CENTER></P>
<A NAME="PAGENUM-319"><P>Page 319</P></A>
<P><B>DESCRIPTION</B></P>
<P>mdel deletes a file on an MS-DOS FILESystem.
</P>
<P>mdel will allow the following command-line option:
<TABLE>
<TR><TD>
v
</TD><TD>
Verbose mode. Echo the filenames as they are processed.
</TD></TR></TABLE>
<P>mdel will ask for verification prior to removing a read_only file.
</P>
<P><B>SEE ALSO</B></P>
<!-- CODE SNIP //-->
<PRE>mtools(1)
</PRE>
<!-- END CODE SNIP //-->
<P>Local
</P>
<H3><A NAME="ch01_ 167">
mdeltree
</A></H3>
<!-- CODE SNIP //-->
<PRE>mdeltree—Remove an MS-DOS directory tree
</PRE>
<!-- END CODE SNIP //-->
<P><B>SYNOPSIS</B></P>
<!-- CODE SNIP //-->
<PRE>mdeltree [ -v ] msdosdirectory [ msdosdirectories... ]
</PRE>
<!-- END CODE SNIP //-->
<P><B>DESCRIPTION</B></P>
<P>mdeltree removes a directory and all the FILES and subdirectories it contains from an MS-DOS FILESystem.
mdeltree will allow the following command-line option:
</P>
<TABLE>
<TR><TD>
v
</TD><TD>
Verbose mode. Displays each file or directory as it is removed.
</TD></TR></TABLE>
<P>An error occurs if the directory does not exist.
</P>
<P><B>SEE ALSO</B></P>
<!-- CODE SNIP //-->
<PRE>mtools(1), mrd(1)
</PRE>
<!-- END CODE SNIP //-->
<P>Local
</P>
<H3><A NAME="ch01_ 168">
mdir
</A></H3>
<P>mdir—Display an MS-DOS directory
</P>
<P><B>SYNOPSIS</B></P>
<!-- CODE SNIP //-->
<PRE WIDTH="1">mdir [ -w ] msdosdirectory
mdir [ -w ][-a ] msdosfile [ msdosFILES... ]
</PRE>
<!-- END CODE SNIP //-->
<P><B>DESCRIPTION</B></P>
<P>mdir displays the contents of an MS-DOS directory.
</P>
<P>mdir will allow the following command-line OPTIONS:
</P>
<TABLE>
<TR><TD>
w
</TD><TD>
Wide output. This option will print the filenames across the page without displaying the file size or creation date.
</TD></TR><TR><TD>
a
</TD><TD>
Also list hidden FILES.
</TD></TR></TABLE>
<P>An error occurs if a component of the path is not a directory.
</P>
<P><B>SEE ALSO</B></P>
<!-- CODE SNIP //-->
<PRE>mtools(1)
</PRE>
<!-- END CODE SNIP //-->
<P>Local
</P>
<A NAME="PAGENUM-320"><P>Page 320</P></A>
<H3><A NAME="ch01_ 169">
merge
</A></H3>
<P>merge—Three-way file merge
</P>
<P><B>SYNOPSIS</B></P>
<!-- CODE SNIP //-->
<PRE>merge [ OPTIONS ] file1 file2 file3
</PRE>
<!-- END CODE SNIP //-->
<P><B>DESCRIPTION</B></P>
<P>merge incorporates all changes that lead from
file2 to file3 into file1. The result ordinarily goes into
file1. merge is useful for combining separate changes to an original. Suppose
file2 is the original, and both file1 and file3 are modifications
of file2. Then merge combines both changes.
</P>
<P>A conflict occurs if both file1 and file3 have changes in a common segment of lines. If a conflict is found,
merge normally outputs a warning and brackets the conflict with
<<<<<<< and
>>>>>>> lines. A typical conflict will look like this:
</P>
<!-- CODE SNIP //-->
<PRE WIDTH="1"><<<<<<< file A
lines in file A
=======
lines in file B
>>>>>>> file B
</PRE>
<!-- END CODE SNIP //-->
<P>If there are conflicts, the user should edit the result and delete one of the alternatives.
</P>
<P><B>OPTIONS</B></P>
<TABLE>
<TR><TD>
_A
</TD><TD>
Output conflicts using the _A style of
diff3(1), if supported by diff3. This merges all changes leading from
file2 to file3 into file1, and generates the most verbose output.
</TD></TR><TR><TD>
_E, _e
</TD><TD>
These OPTIONS specify conflict styles that generate less information than
_A. See diff3(1) for details. The default is _E. With
_e, merge does not warn about conflicts.
</TD></TR><TR><TD>
_L label
</TD><TD>
This option may be given up to three times, and specifies labels to be used in place of the corresponding
filenames in conflict reports. That is, merge_Lx_L y _Lz a b c
generates output that looks like it came from FILES
x, y, and z instead of from FILES a, b, and c.
</TD></TR><TR><TD>
_p
</TD><TD>
Send results to standard output instead of overwriting
file1.
</TD></TR><TR><TD>
_q
</TD><TD>
Quiet; do not warn about conflicts.
</TD></TR><TR><TD>
_V
</TD><TD>
Print RCS's version number.
</TD></TR></TABLE>
<P><B>DIAGNOSTICS</B></P>
<P>Exit status is 0 for no conflicts, 1 for some conflicts,
2 for trouble.
</P>
<P><B>Identification</B></P>
<!-- CODE //-->
<PRE>AUTHOR: Walter F. Tichy.<BR>
Manual Page Revision: 5.7; Release Date: 1995/06/01.<BR>
Copyright " 1982, 1988, 1989 Walter F. Tichy.<BR>
Copyright " 1990, 1991, 1992, 1993, 1994, 1995 Paul Eggert.
</PRE>
<!-- END CODE //-->
<P><B>SEE ALSO</B></P>
<!-- CODE SNIP //-->
<PRE>diff3(1), diff(1), rcsmerge(1), co(1)
</PRE>
<!-- END CODE SNIP //-->
<P><B>BUGS</B></P>
<P>It normally does not make sense to merge binary FILES as if they were text, but
merge tries to do it anyway.
</P>
<P>GNU, 1 June 1995
</P>
<A NAME="PAGENUM-321"><P>Page 321</P></A>
<H3><A NAME="ch01_ 170">
mesg
</A></H3>
<P>mesg—Display (do not display) messages from other users
</P>
<P><B>SYNOPSIS</B></P>
<!-- CODE SNIP //-->
<PRE WIDTH="1">mesg [n][y]
</PRE>
<!-- END CODE SNIP //-->
<P><B>DESCRIPTION</B></P>
<P>The mesg utility is invoked by a users to control write access others have to the terminal device associated with the
standard error output. If write access is allowed, then programs such as
talk(1) and write(1) may display messages on the terminal.
</P>
<P>Traditionally, write access is allowed by default. However, as users become more conscious of various security risks, there is
a trend to remove write access by default, at least for the primary login shell. To make sure your
ttys are set the way you want them to be set, mesg should be executed in your login scripts.
</P>
<P>OPTIONS available:
</P>
<TABLE>
<TR><TD>
n
</TD><TD>
Disallows messages
</TD></TR><TR><TD>
y
</TD><TD>
Permits messages to be displayed
</TD></TR></TABLE>
<P>If no arguments are given, mesg displays the present message status to the standard error output.
</P>
<P>The mesg utility exits with one of the following values:
</P>
<TABLE>
<TR><TD>
\0
</TD><TD>
Messages are allowed.
</TD></TR><TR><TD>
\1
</TD><TD>
Messages are not allowed.
</TD></TR><TR><TD>
1
</TD><TD>
An error has occurred.
</TD></TR></TABLE>
<P><B>FILES</B></P>
<!-- CODE SNIP //-->
<PRE>/dev/[pt]ty[pq]?
</PRE>
<!-- END CODE SNIP //-->
<P><B>SEE ALSO</B></P>
<!-- CODE SNIP //-->
<PRE>biff(1), talk(1), write(1), wall(1), login(1),
xterm(1)
</PRE>
<!-- END CODE SNIP //-->
<P><B>HISTORY</B></P>
<P>A mesg command appeared in version 6 AT&T UNIX.
</P>
<P>Linux 1.2, 10 March 1995
</P>
<P><B>mformat</B></P>
<P>mformat—Add an MS-DOS FILESystem to a low-level formatted disk
</P>
<P><B>SYNOPSIS</B></P>
<!-- CODE SNIP //-->
<PRE>mformat [ -t tracks ] [ -h heads ] [ -s sectors ] [ -l volume label ]
[ -S sizecode ] [ -2 sectors on track 0 ] [ -M software sector size ]
[ -a ][-X ][-C ][-H hidden sectors ] drive:
</PRE>
<!-- END CODE SNIP //-->
<P><B>DESCRIPTION</B></P>
<P>mformat adds a minimal MS-DOS FILESystem (boot sector, FAT, and root directory) to a disk that has already been
formatted by a UNIX low-level format.
</P>
<P>The follow OPTIONS are supported: (The S, 2, 1, and
M OPTIONS may not exist if this copy of mtools has been compiled
without the USE_2M option).
</P>
<A NAME="PAGENUM-322"><P>Page 322</P></A>
<TABLE>
<TR><TD>
t
</TD><TD>
The number of tracks (not cylinders).
</TD></TR><TR><TD>
h
</TD><TD>
The number of heads (sides).
</TD></TR><TR><TD>
s
</TD><TD>
The number of sectors per track. If the
2m option is given, number of 512-byte sector equivalents on generic
tracks (that is, not head 0 track). If the 2m option is not given, number of physical sectors per track (which may be
bigger than 512 bytes).
</TD></TR><TR><TD>
l
</TD><TD>
An optional volume label.
</TD></TR><TR><TD>
S
</TD><TD>
The sizecode. The size of the sector is 2 ^ (sizecode +
7).
</TD></TR><TR><TD>
2
</TD><TD>
2m format. The parameter to this option describes the number of sectors on track
0, head 0. This option is recommended for sectors bigger than normal.
</TD></TR><TR><TD>
1
</TD><TD>
Don't use a 2m format, even if the current geometry of the disk is a
2m geometry.
</TD></TR><TR><TD>
M
</TD><TD>
Software sector size. This parameter describes the sector size in bytes used by the MS-DOS FILESystem. By
default it is the physical sector size.
</TD></TR><TR><TD>
a
</TD><TD>
If this option is given, an Atari-style serial number is generated. Ataris store their serial number in the OEM label.
</TD></TR><TR><TD>
X
</TD><TD>
FORMATS the disk as an Xdf disk. Xdf disks are used by OS/2. This format can hold 1756Kb, and is faster than
the equivalent 2m FORMATS. The disk has first to be low-level formatted using the
xdfcopy utility included in the fdutils package.
</TD></TR><TR><TD>
C
</TD><TD>
Creates the disk image file to install the MS-DOS FILESystem on it. Obviously, this is useless on physical
devices such as floppies and hard disk partitions.
</TD></TR><TR><TD>
H
</TD><TD>
Number of hidden sectors. This parameter is useful for formatting hard disk partitions, which are not aligned
on track boundaries (in other words, first head of first track doesn't belong to the partition, but contains a
partition table). In that case the number of hidden sectors is in general the number of sectors per cylinder. This is untested.
</TD></TR><TR><TD>
n
</TD><TD>
Serial number.
</TD></TR></TABLE>
<P>To format a disk at a density other than the default, you must supply (at least) those command-line parameters that
are different from the default.
</P>
<P>Mformat returns 0 on success or 1 on failure.
</P>
<P><B>SEE ALSO</B></P>
<!-- CODE SNIP //-->
<PRE>mlabel(1)
</PRE>
<!-- END CODE SNIP //-->
<P><B>BUGS</B></P>
<P>Requires a low-level format utility from UNIX.
</P>
<P>Doesn't detect (or record) bad block information.
</P>
<P>Local
</P>
<H3><A NAME="ch01_ 171">
mgrtopbm
</A></H3>
<P>mgrtopbm—Convert an MGR bitmap into a portable bitmap
</P>
<P><B>SYNOPSIS</B></P>
<!-- CODE SNIP //-->
<PRE>mgrtopbm [mgrfile]
</PRE>
<!-- END CODE SNIP //-->
<P><B>DESCRIPTION</B></P>
<P>mgrtopbm reads an MGR bitmap as input and produces a portable bitmap as output.
</P>
<P><B>SEE ALSO</B></P>
<!-- CODE SNIP //-->
<PRE>pbmtomgr(1), pbm(5)
</PRE>
<!-- END CODE SNIP //-->
<P><CENTER>
<a href="0315-0318.html">Previous</A> | <a href="../ewtoc.html">Table of Contents</A> | <a href="0323-0325.html">Next</A></CENTER></P>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -