133-143.html

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

HTML
276
字号
<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=133-143//-->

<!--UNASSIGNED1//-->

<!--UNASSIGNED2//-->



<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="128-132.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="144-149.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>

<P><BR></P>

<P><FONT SIZE="+1"><B>sxpm......<TT>Show X Pixmap</TT></B></FONT></P>

<IMG SRC="images/05-30i.jpg"><P><B>sxpm</B> <I>option(s) filename</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>sxpm</B> displays an X pixmap (graphics) file and can convert files formatted with the XPM 1 or XPM 2 format to the newer XPM 3 format.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="40%" VALIGN="TOP"><B>-closecolors</B>

<TD WIDTH="60%">Uses &#147;close colors&#148; before reverting to other visuals.

<TR>

<TD><B>-color</B>

<TD>Displays the colors specified for a color visual.

<TR>

<TD><B>-cp <I>colorname pixelvalue</I></B>

<TD>Overrides <I>colorname</I> color to <I>pixelvalue</I>.

<TR>

<TD><B>-d <I>display</I></B>

<TD>Specifies the display to connect to.

<TR>

<TD VALIGN="TOP"><B>-g <I>geom</I></B>

<TD>Sets the window geometry (the default is the pixmap size).

<TR>

<TD VALIGN="TOP"><B>-grey</B>

<TD>Displays the colors specified for a greyscale visual.

<TR>

<TD VALIGN="TOP"><B>-grey4</B>

<TD>Displays the colors specified for a 4-color greyscale visual.

<TR>

<TD><B>-hints</B>

<TD>Sets <I>ResizeInc</I> hints for the window.

<TR>

<TD VALIGN="TOP"><B>-icon <I>filename</I></B>

<TD>Creates an icon from pixmap created from the file <I>filename</I>.

<TR>

<TD><B>-mono</B>

<TD>Displays a monochrome visual.

<TR>

<TD VALIGN="TOP"><B>-nod</B>

<TD>Does not display the pixmap in a window; use this option when converting between formats.

<TR>

<TD><B>-nom</B>

<TD>Ignores a clipmask.

<TR>

<TD><B>-o <I>filename</I></B>

<TD>Write to <I>filename</I>.

<TR>

<TD><B>-pcmap</B>

<TD>Uses a private colormap.

<TR>

<TD><B>-plaid</B>

<TD>Shows a plaid pixmap stored as data.

<TR>

<TD><B>-sc <I>symbol colorname</I></B>

<TD>Overrides <I>symbol</I> color to <I>colorname</I>.

<TR>

<TD><B>-sp <I>symbol pixelvalue</I></B>

<TD>Overrides <I>symbol</I> color to <I>pixelvalue</I>.

<TR>

<TD VALIGN="TOP"><B>-rgb <I>filename</I></B>

<TD>Searches the RGB database in <I>filename</I> and writes them out instead of the default RGB values.

<TR>

<TD><B>-v</B>

<TD>Prints extensions in verbose mode.

</TABLE>

<P><FONT SIZE="+1"><B>systat......<TT>System Statistics</TT></B></FONT></P>

<P><B>systat</B> <I>option(s) hostname</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>systat</B> command checks a specified <I>hostname</I> for system information via the hostname&#146;s own <B>systat</B> service. If the <B>systat</B> service isn&#146;t available, <B>daytime</B> or <B>netstat</B> information is queried.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="30%"><B>-n</B>

<TD WIDTH="70%">Query the <B>netstat</B> service.

<TR>

<TD><B>-p <I>port</I></B>

<TD>Specify a <I>port</I> on the host.

<TR>

<TD><B>-s</B>

<TD>Query the <B>systat</B> service (the default setting).

<TR>

<TD><B>-t</B>

<TD>Query the <B>daytime</B> service.

<TR>

<TD><B>--netstat</B>

<TD>Query the <B>netstat</B> service.

<TR>

<TD><B>--port <I>port</I></B>

<TD>Specify a <I>port</I> on the host.

<TR>

<TD><B>--systat</B>

<TD>Query the <B>systat</B> service (the default setting).

<TR>

<TD><B>--time</B>

<TD>Query the <B>daytime</B> service.

</TABLE>

<P><FONT SIZE="+1"><B>sz......<TT>Send Zmodem</TT></B></FONT></P>

<P><B>sz</B> <I>option(s) command</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>sz</B> command sends a file to another system using the Zmodem protocol. There&#146;s a long list of options to this command; see the online-manual page for more information.</P>

<P><FONT SIZE="+1"><B>tee......<TT>Send Information to Two Files</TT></B></FONT></P>

<P><B>tee</B> <I>option filenames</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>tee</B> command sends the output of a command to two separate files. If the files already exist, the <B>tee</B> command will overwrite the contents of the files.</P>

<P><FONT SIZE="+1"><B><I>OPTION</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%" VALIGN="TOP"><B>-a</B>

<TD WIDTH="80%">Appends routed information to <I>filenames</I>, but does not overwrite existing files.

</TABLE>

<P><FONT SIZE="+1"><B><I>EXAMPLE</I></B></FONT></P>

<!-- CODE SNIP //-->

<PRE>

$ tee output.kr output.pv

</PRE>

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

<P><FONT SIZE="+1"><B>tload......<TT>Total Systems Load</TT></B></FONT></P>

<P><B>tload</B> <I>option(s)</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>tload</B> command lists the system load in a graph.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%"><B>-d <I>delay</I></B>

<TD WIDTH="80%">Sets the delay between graph updates in seconds.

<TR>

<TD><B>-s <I>scale</I></B>

<TD>Specifies a vertical scale.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>ps</B>

<DD><B>top</B>

</DL>

<P><FONT SIZE="+1"><B>top......<TT>Top Processes</TT></B></FONT></P>

<P><B>top</B> <I>option(s)</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>top</B> command lists the top processes on the system&#151;that is, those processes that are using the most CPU time.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%"><B>d</B>

<TD WIDTH="80%">Specifies the delay between screen updates.

<TR>

<TD><B>q</B>

<TD>Refreshes without any delay.

<TR>

<TD><B>S</B>

<TD>Lists CPU time of dead children as well.

<TR>

<TD><B>s</B>

<TD>Runs in secure mode.

<TR>

<TD><B>i</B>

<TD>Ignores zombie or idle processes.

</TABLE>

<P><FONT SIZE="+1"><B><I>EXAMPLE</I></B></FONT></P>

<!-- CODE SNIP //-->

<PRE>

$ top

</PRE>

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

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>ps</B>

<DD><B>tload</B>

</DL>

<P><FONT SIZE="+1"><B>true......<TT>Returns True</TT></B></FONT></P>

<IMG SRC="images/05-31i.jpg"><P><B>true</B></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>true</B> command does nothing except return an exit status of 0, which means success. This is useful in shell scripts.</P>

<P><FONT SIZE="+1"><B>ul......<TT>Underline</TT></B></FONT></P>

<P><B>ul</B> <I>option(s) terminals</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>ul</B> command changes all underscored text to underlined text. This is an issue for terminal users hooked to a Linux system, not to most Linux users.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%" VALIGN="TOP"><B>-i</B>

<TD WIDTH="80%">Uses a separate line containing appropriate dashes for underlining.

<TR>

<TD><B>-t <I>terminal</I></B>

<TD>Specifies a new terminal type.

</TABLE>

<P><FONT SIZE="+1"><B>unshar......<TT>Unpack Shar File</TT></B></FONT></P>

<P><B>unshar</B> <I>option(s) filename</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>unshar</B> command unpacks a <B>shar</B> file.</P>

<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>

<TABLE WIDTH="100%">

<TR>

<TD WIDTH="20%"><B>-c</B>

<TD WIDTH="80%">Overwrites existing files.

<TR>

<TD VALIGN="TOP"><B>-d <I>directory</I></B>

<TD>Changes the directory to <I>directory</I> before unpacking files.

</TABLE>

<P><FONT SIZE="+1"><B><I>RELATED COMMAND</I></B></FONT></P>

<DL>

<DD><B>shar</B>

</DL>

<P><FONT SIZE="+1"><B>uptime......<TT>System Information</TT></B></FONT></P>

<P><B>uptime</B></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>uptime</B> command tells how long the system has been running, how many users are currently logged on, and the system-load averages for the past 1, 5, and 15 minutes.</P>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>users</B>

<DD><B>w</B>

<DD><B>who</B>

</DL>

<P><FONT SIZE="+1"><B>users......<TT>User Information</TT></B></FONT></P>

<IMG SRC="images/05-32i.jpg"><P><B>users</B> <I>filename</I></P>

<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>

<P>The <B>users</B> command lists information about the users currently logged in the Linux system, based on information found in the <B>/etc/utmp</B> file. If you want information from another system file, you must specify it on the command line.</P>

<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>

<DL>

<DD><B>who</B>

</DL>

<P><BR></P>

<CENTER>

<TABLE BORDER>

<TR>

<TD><A HREF="128-132.html">Previous</A></TD>

<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>

<TD><A HREF="144-149.html">Next</A></TD>

</TR>

</TABLE>

</CENTER>





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

<!-- begin footer information -->





</body></html>

⌨️ 快捷键说明

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