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. 从js的repeat方法谈js字符串与数组的扩展方法

    js将字符串重复N次的repeat方法的8个版本 /* *@desc: 将一个字符串重复自身N次 */ //版本1:利用空数组的join方法 function repeat(target, n) { ...

  2. 高效图片轮播,两个imageView实现

    本文是投稿文章,作者:codingZero 导语 在不少项目中,都会有图片轮播这个功能,现在网上关于图片轮播的框架层出不穷,千奇百怪,笔者根据自己的思路,用两个imageView也实现了图片轮播,这里 ...

  3. VS2013配置Caffe卷积神经网络工具(64位Windows 7)——准备依赖库

    VS2013配置Caffe卷积神经网络工具(64位Windows 7)--准备依赖库 2014年4月的时候自己在公司就将Caffe移植到Windows系统了,今年自己换了台电脑,想在家里也随便跑跑,本 ...

  4. Windows 下安装项目管理工具 Redmine 1.1.2

    1.InstantRails-2.0-win 下载地址  https://rubyforge.org/frs/?group_id=904 2.redmine1.1.2 下载地址  http://www ...

  5. C# ManualResetEvent的使用

    using System; using System.Threading; public class Example { // mre is used to block and release thr ...

  6. R-squared是什么意思

    在回归分析中,R-squared值应该为多大? 就像经常被问到,在回归分析中,R平方应该为多大才表示回归模型是好的?我经常能够听到这类问题,在没回答这个问题之前,我会解释如 何来解释R平方值,我也会阐 ...

  7. MapReduce中TextInputFormat分片和读取分片数据源码级分析

    InputFormat主要用于描述输入数据的格式(我们只分析新API,即org.apache.hadoop.mapreduce.lib.input.InputFormat),提供以下两个功能: (1) ...

  8. 使用Fabric进行crash收集统计

    主要是帮助自己记一下地址. 1 申请Crashlytics服务:http://try.crashlytics.com 2 下载Fabric客户端,帮助集成Crashlytics到自己的项目中:http ...

  9. 如何在Linux命令行中创建以及展示演示稿

    导读 你在准备一场演讲的时候,脑海可能会先被图文并茂.形象华丽的演示图稿所占据.诚然,没有人会否认一份生动形象的演讲稿所带来的积极作用.然而,并非所有的演讲都需要TED Talk的质量.更多时候,演讲 ...

  10. SQL注入自学[第二学:注入环境的简单突破]

    /* 原文出处:珍惜少年时 留给原创一个ZBD机会. 加号即空格 */ 00x1 判断是否含有注入 http://127.0.0.1/1.php?id=3 and 1=1-- 返回正确的页面. htt ...