w --help
-f  开启或关闭显示用户从何处登入系统。
-h  不显示各栏位的标题信息列。
-l  使用详细格式列表,此为预设值。
-s  使用简洁格式列表,不显示用户登入时间,终端机阶段作业和程序所耗费的CPU时间。
-u  忽略执行程序的名称,以及该程序耗费CPU时间的信息。
-V  显示版本信息。
[root@bass ~]# w -s
10:44:38 up 2:07, 9 users, load average: 0.94, 0.98, 0.93
USER TTY FROM IDLE WHAT
root tty1 :0 2:07m /usr/bin/Xorg :0 -br -verbose -audit 4 -auth /var/run/gdm/auth-for-gdm-Bj4YG3/database -nolisten tcp vt1
root pts/0 :0.0 7:42 ssh xxx.57.36.123
root pts/2 :0.0 1:48m bash
root pts/3 :0.0 20:01 ssh xxx.56.183.xxx
root pts/4 :0.0 0.00s w -s
root pts/5 :0.0 21:02 ssh xxx.56.183.xxx
root pts/6 :0.0 1:58m htop
root pts/7 :0.0 46:06 ssh xxx.57.36.123
root pts/8 :0.0 38:55 ssh xxx.57.36.123
[root@bass ~]# w -i
10:44:51 up 2:07, 9 users, load average: 0.95, 0.98, 0.93
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 :0 08:38 2:07m 4:31 4:31 /usr/bin/Xorg :0 -br -verbose -audit 4 -auth /var/run/gdm/auth-for-gdm-Bj4YG3/database -nolisten tcp vt1
root pts/0 :0.0 08:39 7:55 0.19s 0.19s ssh xxx.57.36.123
root pts/2 :0.0 08:40 1:48m 0.00s 0.00s bash
root pts/3 :0.0 10:23 20:14 0.06s 0.05s ssh xxx.56.183.xxx
root pts/4 :0.0 10:37 0.00s 0.02s 0.00s w -i
root pts/5 :0.0 08:44 21:15 0.21s 0.20s ssh xxx.56.183.xxx
root pts/6 :0.0 08:45 1:58m 2:06 2:06 htop
root pts/7 :0.0 09:11 46:19 0.06s 0.06s ssh xxx.57.36.123
root pts/8 :0.0 09:11 39:08 0.05s 0.05s ssh xxx.57.36.123
[root@bass ~]# w -l
10:45:07 up 2:07, 9 users, load average: 0.96, 0.99, 0.93
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 :0 08:38 2:07m 4:31 4:31 /usr/bin/Xorg :0 -br -verbose -audit 4 -auth /var/run/gdm/auth-for-gdm-Bj4YG3/database -nolisten tcp vt1
root pts/0 :0.0 08:39 8:11 0.19s 0.19s ssh xxx.57.36.123
root pts/2 :0.0 08:40 1:48m 0.00s 0.00s bash
root pts/3 :0.0 10:23 20:30 0.06s 0.05s ssh xxx.56.183.xxx
root pts/4 :0.0 10:37 0.00s 0.02s 0.00s w -l
root pts/5 :0.0 08:44 21:31 0.21s 0.20s ssh xxx.56.183.xxx
root pts/6 :0.0 08:45 1:58m 2:07 2:07 htop
root pts/7 :0.0 09:11 46:35 0.06s 0.06s ssh xxx.57.36.123
root pts/8 :0.0 09:11 39:24 0.05s 0.05s ssh xxx.57.36.123
[root@bass ~]# w -u
10:45:11 up 2:08, 9 users, load average: 0.97, 0.99, 0.93
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
root tty1 :0 08:38 2:07m 4:31 4:31 /usr/bin/Xorg :0 -br -verbose -audit 4 -auth /var/run/gdm/auth-for-gdm-Bj4YG3/database -nolisten tcp vt1
root pts/0 :0.0 08:39 8:15 0.19s 0.19s ssh xxx.57.36.123
root pts/2 :0.0 08:40 1:48m 0.00s 0.00s bash
root pts/3 :0.0 10:23 20:34 0.06s 0.05s ssh xxx.56.183.xxx
root pts/4 :0.0 10:37 0.00s 0.02s 0.00s w -u
root pts/5 :0.0 08:44 21:35 0.21s 0.20s ssh xxx.56.183.xxx
root pts/6 :0.0 08:45 1:59m 2:07 2:07 htop
root pts/7 :0.0 09:11 46:39 0.06s 0.06s ssh xxx.57.36.123
root pts/8 :0.0 09:11 39:28 0.05s 0.05s ssh xxx.57.36.123

w的更多相关文章

  1. lucene入门创建索引——(二)

    1.程序宏观结构图

  2. curl -w,–write-out参数详解

    顾名思义,write-out的作用就是输出点什么.curl的-w参数用于在一次完整且成功的操作后输出指定格式的内容到标准输出. 输出格式由普通字符串和任意数量的变量组成,输出变量需要按照%{varia ...

  3. SharePoint Claim base authentication EnsureUser 不带claim(i:0#.w|)user Failed

    环境信息: 带有Form base authentication(FBA).Active Directory Federation Services(ADFS).以及windows Authentic ...

  4. 文件权限:普通(r、w、x)和特殊(s、t)

     linux中,常常涉及到权限的问题.文件的权限有3组,owner,group,other,每一组都有rwx三种设置.r(4):可读:w(2):可写:x(1):可执行.我们在执行shell命令ls - ...

  5. 德国W家HIPP 奶粉有货播报:2014.7.8 HIPP 奶粉 1+ 4盒装有货啦!

    德国W家HIPP 奶粉有货播报:2014.7.8 HIPP 奶粉 1+ 4盒装有货啦!

  6. 德国W家HIPP 奶粉有货播报:2014.6.25 HIPP 1+ 4盒装有货啦!

    德国W家HIPP 奶粉有货播报:2014.6.25 HIPP 1+ 4盒装有货啦!

  7. Ruby 里的 %Q, %q, %W, %w, %x, %r, %s, %i (译)转

    原文地址  转自 %Q 用于替代双引号的字符串. 当你需要在字符串里放入很多引号时候, 可以直接用下面方法而不需要在引号前逐个添加反斜杠 (\") >> %Q(Joe said: ...

  8. Log图文详解(Log.v,Log.d,Log.i,Log.w,Log.e)的用法

      Android.util.Log常用的方法有以下5个:Log.v() Log.d() Log.i() Log.w() 以及 Log.e() .根据首字母对应VERBOSE,DEBUG,INFO, ...

  9. Reporting Service 告警"w WARN: Thread pool pressure. Using current thread for a work item"

    如果Reporting Service偶尔出现不可访问或访问出错情况,这种情况一般没有做监控的话,很难捕捉到.出现这种问题,最好检查Reporting Service的日志文件. 今天早上就遇到这样一 ...

  10. Linux下用于查看系统当前登录用户信息 w命令

    作为系统管理员,你可能经常会(在某个时候)需要查看系统中有哪些用户正在活动.有些时候,你甚至需要知道他(她)们正在做什么.本文为我们总结了4种查看系统用户信息(通过编号(ID))的方法. 1. 使用w ...

随机推荐

  1. jprofiler安装与使用

    1: 修改/etc/profile 增加以下内容: JPROFILER_HOME=/opt/jprofiler9/bin/linux-x64export LD_LIBRARY_PATH=$LD_LIB ...

  2. Spring学习8- SSH需要的jar包

    struts2 commons-logging-1.0.4.jar 主要用于日志处理 freemarker-2.3.8.jar 模板相关操作需要包 ognl-2.6.11.jar ognl表达示所需包 ...

  3. Spring MVC GET 从客户端数据到服务器端的乱码和服务器端数据到客户端的乱码

    参考资料:http://m.oschina.net/blog/376339 乱码的本质是涉及到编解码的几个过程所用的编码方式不一样. 一.从服务端到客户端 在整个服务器端数据返回到浏览器的过程中,涉及 ...

  4. JavaScript常见调试方法

    编辑导语:javascript调试方法,常见使用alert和console来定位出错和输出的结果是否是想要的,在chrome中,还可以使用断点来看运行的情况等,本文介绍了比较全面的调试方法,你知道co ...

  5. Oracle 客户端配置

    nstantclient-basic-nt-12.1.0.1.0\instantclient_12_1下面新建NETWORK文件夹,NETWORK下新建ADMIN文件夹,ADMIN下新建tnsname ...

  6. ios7开发学习笔记-包括c oc 和ios介绍

    请查看我的新浪资料分享 http://iask.sina.com.cn/u/2430843520

  7. C++中构造函数详解及显式调用构造函数

    C++构造函数详解及显式调用构造函数                                         c++类的构造函数详解                        一. 构造函 ...

  8. shell 删除文件下的* (copy).jpg备份文件

    shell编程中,  在for, while循环中为什么不用(), {} 不是没有; 而是因为(), {}做了其他用途: (): 执行命令组, 注意这个命令组是新开一个子shell中执行, 因此,括号 ...

  9. Matlab之字符串处理

    Matlab处理字符串 1.取得部分字符串 我们有一个字符串 file='20131030_113109.TemporaryAlias.Poly5'; 简单操作举例: >> a=file( ...

  10. 使用mysql服务来记录用户的反馈

    经过前几篇教程的学习,相信你对于微信的操作与SAE和webpy都有了些了解,那么这次我想加一个功能,通过mysql来记录用户的反馈,如用户输入fk+内容,然后通过一个页面来显示,最终的效果如下 htt ...