命令:
who:
| 常用選項 | 意義 |
| -a | 顯示所有用戶的所有信息 |
| -m | 顯示運行該程序的用戶 |
| -p | 只顯示用戶的登陸帳號和登陸用戶的數(shù)量,該選項優(yōu)先級高于其他任何選項 |
| -r | 顯示當(dāng)前用戶的運行級別,是在那個級別運行的 |
| -u | 在登陸用戶后面顯示該用戶最后一次對系統(tǒng)進行操作距今的時間 |
參數(shù):注:格式有點亂,
-a, --all :
系統(tǒng)引導(dǎo) 2014-05-30 00:32
運行級別 2 2014-05-30 00:32
登錄 tty4 2014-05-30 00:32 932 id=4 登錄 tty5 2014-05-30 00:32 937 id=5 登錄 tty2 2014-05-30 00:32 944 id=2 登錄 tty3 2014-05-30 00:32 945 id=3 登錄 tty6 2014-05-30 00:32 947 id=6 登錄 tty1 2014-05-30 00:32 1182 id=1 yufangqing + tty7 2014-05-30 00:33 舊 2320 yufangqing - pts/0 2014-05-30 00:33 . 3168 (:0)
-b, --boot : time of last system boot
系統(tǒng)最后一次啟動的時間
-d, --dead : PRint dead processes
打印已經(jīng)被死亡的進程
-H, --heading:
print line of column headings
事例: 名稱 線路 時間 備注
yufangqing tty7 2014-05-30 00:33 yufangqing pts/0 2014-05-30 00:33 (:0)
--ips
print ips instead of hostnames. with --lookup, canonicalizes based on stored IP, if available, rather than stored hostname
-l, --login print system login processes
打印當(dāng)前系統(tǒng)登陸進程
--lookup attempt to canonicalize hostnames via DNS
-m
only hostname and user associated with stdin
-p, --process print active processes spawned by init
-q, --count all login names and number of users logged on
-r, --runlevel print current runlevel
-s, --short print only name, line, and time (default)
-t, --time print last system clock change
-T, -w, --mesg add user's message status as +, - or ?
-u, --users list users logged in
|
新聞熱點
疑難解答
圖片精選