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. Learning UNIX with examples. [2013-08-01]. (原始內容存檔於2014-03-02). 

外部連結[編輯]