📄 336-340.html
字号:
<HTML>
<HEAD>
<TITLE>Linux in Plain English:Linux Commands Organized by Group</TITLE>
<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=1558285423//-->
<!--TITLE=Linux in Plain English//-->
<!--AUTHOR=Patrick Volkerding//-->
<!--AUTHOR=Kevin Reichard//-->
<!--PUBLISHER=IDG Books Worldwide, Inc.//-->
<!--IMPRINT=M & T Books//-->
<!--CHAPTER=5//-->
<!--PAGES=336-340//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="328-335.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="341-351.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><FONT SIZE="+1"><B>sed......<TT>Stream Editor</TT></B></FONT></P>
<P><B>sed</B> <I>option(s) filename(s)</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>sed</B> command reads files and modifies the input as specified by a list of commands. The input is then written to the standard output.</P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="25%" VALIGN="TOP"><B>-a</B>
<TD WIDTH="75%">Files listed as parameters for the <B>w</B>’ functions are created (or truncated) before any processing begins.
<TR>
<TD VALIGN="TOP"><B>-e <I>command</I></B>
<TD>Appends the editing commands specified by <I>command</I> to the list of commands.
<TR>
<TD VALIGN="TOP"><B>-f <I>command_file</I></B>
<TD>Append the commands from <I>command_file</I> to the list of commands.
<TR>
<TD><B>-n</B>
<TD>Suppresses echoing of each line of input.
</TABLE>
<P><FONT SIZE="+1"><B>selection......<TT>Select Text</TT></B></FONT></P>
<P><B>selection</B> <I>option(s)</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>selection</B> command takes characters from the current Linux console and pastes them into another section of the current console. The command is typically launched at boot time from the <B>/etc/rc.local</B> file and run as a background process.</P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="30%" VALIGN="TOP"><B>-a<I>accel</I></B>
<TD WIDTH="70%">Movements of more than <I>delta</I> pixels are multiplied by <I>accel</I> (the default is 2).
<TR>
<TD VALIGN="TOP"><B>-b<I>baud-rate</I></B>
<TD>Sets the baud rate of the mouse. <SMALL><B>warning</B></SMALL>: This is an option to be avoided, as setting the incorrect baud rate can cause your mouse to freeze, and there are other mechanisms for setting the baud rate elsewhere in Linux and XFree86.
<TR>
<TD VALIGN="TOP"><B>-c<I>l</I>|<I>m</I>|<I>r</I></B>
<TD>Sets the copy button to left (<I>l</I>), middle(<I>m</I>), or right (<I>r</I>). (The default is left.)
<TR>
<TD VALIGN="TOP"><B>-d<I>delta</I></B>
<TD>Movements of more than <I>delta</I> pixels are multiplied by <I>accel</I> (the default is 25).
<TR>
<TD><B>-m<I>mouse-device</I></B>
<TD>Sets the mouse (the default is <B>/dev/mouse</B>).
<TR>
<TD VALIGN="TOP"><B>-p<I>l</I>|<I>m</I>|<I>r</I></B>
<TD>Sets the paste button to left (<I>l</I>), middle(<I>m</I>), or right (<I>r</I>). (The default is right.)
<TR>
<TD><B>-s<I>sample-rate</I></B>
<TD>Sets the sample rate of the mouse (the default is 100).
<TR>
<TD VALIGN="TOP"><B>-t<I>mouse-type</I></B>
<TD>Sets the mouse type: Microsoft is <I>ms</I>, Mouse Systems is <I>msc</I>, MM Series is <I>mm</I>, Logitech is <I>logi</I>, Bus Mouse is <I>bm</I>, MSC 3-bytes is <I>sun</I>, and PS/2 mouse is <I>ps2</I>. The default is <I>ms</I>. <SMALL><B>warning</B></SMALL>: This is an option to be avoided, as setting the mouse type can cause your mouse to freeze, and there are other mechanisms for setting the mouse type elsewhere in Linux and XFree86.
<TR>
<TD VALIGN="TOP"><B>-w<I>slack</I></B>
<TD>Sets the amount of slack before the pointer reappears at the other side of the screen.
</TABLE>
<P><FONT SIZE="+1"><B>soelim......<TT>Groff Interpreter</TT></B></FONT></P>
<P><B>soelim</B> <I>option filename(s)</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>soelim</B> command interprets <B>.so</B> requests in groff input. It reads a specified <I>filename</I> and replaces lines of the form:</P>
<!-- CODE SNIP //-->
<PRE>
.so file
</PRE>
<!-- END CODE SNIP //-->
<P>with the contents of <I>filename</I>.</P>
<P><FONT SIZE="+1"><B><I>OPTION</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="25%" VALIGN="TOP"><B>-C</B>
<TD WIDTH="75%">Recognizes <B>.so</B> even when it is followed by a character other than space or newline.
</TABLE>
<P><FONT SIZE="+1"><B><I>RELATED COMMAND</I></B></FONT></P>
<DL>
<DD><B>groff</B>
</DL>
<P><FONT SIZE="+1"><B>sort......<TT>Sorts Files</TT></B></FONT></P>
<IMG SRC="images/05-121i.jpg"><P><B>sort</B> <I>option(s) filename(s)</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>sort</B> command sorts, merges, or compares the lines of text files. The results are written to the screen.</P>
<P><FONT SIZE="+1"><B><I>MODE OPTIONS</I></B></FONT></P>
<P>You can change the mode with the following options:
</P>
<TABLE WIDTH="100%"><TR>
<TD WIDTH="15%" VALIGN="TOP"><B>-c</B>
<TD WIDTH="85%">Checks whether files are sorted; if not, an error message is printed.
<TR>
<TD VALIGN="TOP"><B>-m</B>
<TD>Merges files by sorting them as a group, but the files must already be sorted.
</TABLE>
<P><FONT SIZE="+1"><B><I>GENERAL OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="25%"><B>+POS1 [-POS2]</B>
<TD WIDTH="75%">Within each line, sets the field to use as the sorting key.
<TR>
<TD><B>-b</B>
<TD>Ignores leading blanks in lines.
<TR>
<TD VALIGN="TOP"><B>-d</B>
<TD>Sorts in phone directory order, ignoring all characters except letters, digits, and blanks when sorting.
<TR>
<TD VALIGN="TOP"><B>-f</B>
<TD>Folds lowercase characters into the equivalent uppercase characters when sorting.
<TR>
<TD><B>-i</B>
<TD>Ignores non-ASCII characters.
<TR>
<TD><B>-k POS1[,POS2]</B>
<TD>Sets the field within each line to use as the sorting key.
<TR>
<TD VALIGN="TOP"><B>-M</B>
<TD>Month abbreviations are changed to uppercase and sorted in order.
<TR>
<TD><B>-n</B>
<TD>Compares in arithmetic value.
<TR>
<TD><B>-o <I>file</I></B>
<TD>Writes output to <I>file</I>.
<TR>
<TD><B>-r</B>
<TD>Reverses the order.
<TR>
<TD><B>-t <I>separator</I></B>
<TD>Specifies <I>separator</I> as the field separator.
<TR>
<TD VALIGN="TOP"><B>-u</B>
<TD>Displays only the first of a sequence of lines that compare equal when using the <B>-m</B> option, or checks that no pair of consecutive lines compares equal when using the <B>-c</B> option.
</TABLE>
<P><FONT SIZE="+1"><B>split......<TT>Splits Files</TT></B></FONT></P>
<IMG SRC="images/05-122i.jpg"><P><B>split</B> <I>option(s) infile outfile</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>split</B> command splits a file into two or more output files. The default is to split a file after each 1,000 lines, but that can be changed with a command-line option.</P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="25%" VALIGN="TOP"><B>-<I>lines</I></B>
<TD WIDTH="75%" COLSPAN="2">Uses <I>lines</I> as the number of lines in file (the default is 1000).
<TR>
<TD VALIGN="TOP"><B>-b <I>bytes</I>[<I>bkm</I>]</B>
<TD COLSPAN="2">Separates files by <I>bytes</I> number of bytes. You can add a character to specify different units:
<TR>
<TD>
<TD WIDTH="10%"><B>b</B>
<TD WIDTH="65%">512-byte blocks
<TR>
<TD>
<TD><B>k</B>
<TD>1-kilobyte blocks
<TR>
<TD>
<TD><B>m</B>
<TD>1-megabyte blocks
<TR>
<TD VALIGN="TOP"><B>-C <I>bytes</I>[<I>bkm</I>]</B>
<TD COLSPAN="2">Separates files by <I>bytes</I> number of bytes, but makes sure that the file ends on a complete line. You can add a character to specify different units:
<TR>
<TD>
<TD WIDTH="10%"><B>b</B>
<TD WIDTH="65%">512-byte blocks
<TR>
<TD>
<TD><B>k</B>
<TD>1-kilobyte blocks
<TR>
<TD>
<TD><B>m</B>
<TD>1-megabyte blocks
</TABLE>
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="328-335.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="341-351.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -