144-149.html
来自「linux-unix130.linux.and.unix.ebooks130 l」· HTML 代码 · 共 163 行
HTML
163 行
<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=144-149//-->
<!--UNASSIGNED1//-->
<!--UNASSIGNED2//-->
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="133-143.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="150-153.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
<P><BR></P>
<P><FONT SIZE="+1"><B>viewres......<TT>View Classes</TT></B></FONT></P>
<IMG SRC="images/05-33i.jpg"><P><B>viewres</B> <I>option(s)</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>viewres</B> program displays the widget class hierarchy of the Athena Widget Set.</P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="20%" VALIGN="TOP"><B>-top <I>name</I></B>
<TD WIDTH="80%">Specifies the name of the highest widget in the hierarchy to display.
<TR>
<TD VALIGN="TOP"><B>-variable</B>
<TD>Displays the widget variable names in nodes rather than the widget class name.
<TR>
<TD><B>-vertical</B>
<TD>Displays top to bottom rather left to right.
</TABLE>
<P><FONT SIZE="+1"><B>w......<TT>System Information</TT></B></FONT></P>
<P><B>w</B> <I>option(s) usernames</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>w</B> command returns information about the system: users currently logged in the system, usage statistics, and tasks that the users are performing. This is a combination of the <B>who</B>, <B>ps -a</B>, and <B>uptime</B> commands.</P>
<P>System information is returned in a header that includes the following: the current time, 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>User information includes the following: login name, tty name, the remote host, login time, idle, JCPU, PCPU, and the command line of their current process.</P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="20%"><B>-h</B>
<TD WIDTH="80%">Suppresses printing of the header.
<TR>
<TD VALIGN="TOP"><B>-u</B>
<TD>Ignores the current user while figuring out the current process and CPU times.
<TR>
<TD VALIGN="TOP"><B>-s</B>
<TD>Suppresses printing of the login time, JCPU, or PCPU times.
<TR>
<TD><B>-f</B>
<TD>Prints the <B>from</B> (<I>remote hostname</I>) field.
</TABLE>
<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>
<DL>
<DD><B>free</B>
<DD><B>ps</B>
<DD><B>top</B>
<DD><B>uptime</B>
</DL>
<P><FONT SIZE="+1"><B>whatis......<TT>Command Information</TT></B></FONT></P>
<P><B>whatis</B> <I>option(s) keyword</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>whatis</B> command invokes a miniature help system, but the topics are listed by keyword (which covers concepts) and not necessarily by commands. Because the Help information is returned as one line, there’s not much depth concerning the keywords.</P>
<P>See the online-manual pages for a list of the available options.</P>
<P><FONT SIZE="+1"><B><I>EXAMPLE</I></B></FONT></P>
<!-- CODE SNIP //-->
<PRE>
$ whatis cat
</PRE>
<!-- END CODE SNIP //-->
<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>
<DL>
<DD><B>apropos</B>
<DD><B>man</B>
</DL>
<P><FONT SIZE="+1"><B>who......<TT>User Information</TT></B></FONT></P>
<P><B>who</B> <I>option(s) filename</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>who</B> command displays information about the system or a specific user. By itself, the <B>who</B> command lists the names of users currently logged in the system. As the command line <B>who am i</B>, the <B>who</B> command lists information about you.</P>
<P>See the online-manual pages for a list of the available options.</P>
<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>
<DL>
<DD><B>w</B>
<DD><B>whoami</B>
</DL>
<P><FONT SIZE="+1"><B>whoami......<TT>Who Am I</TT></B></FONT></P>
<P><B>whoami</B></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>This is a one-word shortcut to the <B>who am I</B> variation of the <B>who</B> command. It’s also the same as <B>id -un</B>.</P>
<P><FONT SIZE="+1"><B><I>EXAMPLE</I></B></FONT></P>
<!-- CODE SNIP //-->
<PRE>
$ whoami
kevin
</PRE>
<!-- END CODE SNIP //-->
<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>
<DL>
<DD><B>who</B>
</DL>
<P><FONT SIZE="+1"><B>wish......<TT>Tcl Window Shell</TT></B></FONT></P>
<P><B>wish</B> <I>filename arg</I></P>
<P><FONT SIZE="+1"><B><I>PURPOSE</I></B></FONT></P>
<P>The <B>wish</B> command is a shell window encompassing the Tcl command language, the Tk toolkit, and a main program that reads commands from standard input or from a file. It creates a main window and then processes Tcl commands. It will continue processing commands until all windows have been deleted or until end-of-file is reached on standard input.</P>
<P><FONT SIZE="+1"><B><I>OPTIONS</I></B></FONT></P>
<TABLE WIDTH="100%">
<TR>
<TD WIDTH="30%" VALIGN="TOP"><B>-colormmap new</B>
<TD WIDTH="70%">Creates a new private colormap instead of using the default colormap.
<TR>
<TD VALIGN="TOP"><B>-sync</B>
<TD>Executes X server commands synchronously, so errors are reported immediately.
<TR>
<TD><B>-visual <I>visual</I></B>
<TD>Specifies the visual for the window.
</TABLE>
<P><FONT SIZE="+1"><B><I>RELATED COMMANDS</I></B></FONT></P>
<DL>
<DD><B>Tk</B>
</DL>
<P><BR></P>
<CENTER>
<TABLE BORDER>
<TR>
<TD><A HREF="133-143.html">Previous</A></TD>
<TD><A HREF="../ewtoc.html">Table of Contents</A></TD>
<TD><A HREF="150-153.html">Next</A></TD>
</TR>
</TABLE>
</CENTER>
</td>
</tr>
</table>
<!-- begin footer information -->
</body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?