每天一个Linux命令

每天一个Linux 命令 - who

2017-03-09  本文已影响20人  BlackChen

who

who - show who is logged on

Print information about users who are currently logged in.
打印当前登录用户的信息.

          [posp@hadoop02 Kms]$ who -a
                      系统引导     2016-12-11 16:18
                      运行级别 5   2016-12-11 16:18
           登录       tty4         2016-12-11 16:18              1961 id=4
           登录       tty2         2016-12-11 16:18              1956 id=2
           登录       tty3         2016-12-11 16:18              1959 id=3
           登录       tty6         2016-12-11 16:18              1965 id=6
           登录       tty5         2016-12-11 16:18              1963 id=5
           root     + pts/0        2017-02-24 10:10  旧的       15093 (hadoop01.uinpay.cn)
                      pts/1        2017-03-09 01:14              5696 id=ts/1  终端=0 退出=0
                      pts/2        2016-12-13 14:25             11150 id=ts/2  终端=0 退出=0

各种终端的区别 pts/tty...

[posp@hadoop02 Kms]$ who -q
root posp posp posp posp posp posp posp posp posp
# 用户数=10
[posp@hadoop02 log]$ who am i
posp     pts/5        2017-03-08 09:59 (192.168.10.184)
上一篇 下一篇

猜你喜欢

热点阅读