w - Show who is logged on and what they are doing

1、图例

[root@VM-16-7-centos ~]# w
 20:05:52 up 40 days,  5:30,  2 users,  load average: 0.29, 0.25, 0.23
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    180.111.104.29   19:47    0.00s  0.02s  0.00s w
root     pts/1    180.111.104.29   19:49   13:04   0.03s  0.00s less -s

2、描述

显示机器当下的用户和进程信息。
按照顺序显示当前时间,系统运行时长,当前用户登录数量,系统过去1、5、15分钟的平均负载。
用户当前进程显示:用户名,终端名称,远程主机IP,登陆时间,空闲时间,JCPU,PCPU,当前进程的命令行。

JCPU:连接到tty所有进程所使用的时间
PCPU:当前进程使用的时间

3、使用方式

w [options] user [...]

4、可选择参数

Options:
 -h, --no-header     do not print header
 -u, --no-current    ignore current process username
 -s, --short         short format
 -f, --from          show remote hostname field
 -o, --old-style     old style output
 -i, --ip-addr       display IP address instead of hostname (if possible)

     --help     display this help and exit
 -V, --version  output version information and exit
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值