w (Unix)

命令w是许多类Unix操作系统提供的快速列出当前已登录用户信息的计算机命令。[1]该命令可以列出用户的当前动作,以及当前计算机的负载情况。该命令实际是下列多个Unix命令的组合:whouptimeps -a

示例

输出示例 (内容因不同系统有很大差异):

$ w
 11:12am up 608 day(s), 19:56,  6 users,  load average: 0.36, 0.36, 0.37
User     tty       login@  idle  what
smithj   pts/5      8:52am       w
jonesm   pts/23    20Apr06    28 -bash
harry    pts/18     9:01am     9 pine
peterb   pts/19    21Apr06       emacs -nw html/index.html
janetmcq pts/8     10:12am 3days -csh
singh    pts/12    16Apr06  5:29 /usr/bin/perl -w perl/test/program.pl

参考

  1. David Martínez Perales. .

外部链接

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.