Linux命令详解之w命令

1.命令详解

···
NAMEw - Show who is logged on and what they are doing.

w命令就是用来展示谁在登录,以及他们在做什么。

DESCRIPTIONw  displays  information  about  the  users currently on the machine, and their processes.  The header shows, in this order, the current time, how long the system has been running, how manyusers are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.The following entries are displayed for each user: login name, the tty name, the remote host, login time, idle time, JCPU, PCPU, and the command line of their current process.The JCPU time is the time used by all processes attached to the tty.  It does not include past background jobs, but does include currently running background jobs.The PCPU time is the time used by the current process, named in the "what" field.

w描述信息关于users当前在机器中的users,以及它们的进程。行首将以下面这个顺序展示:当前的时间,系统已经运行了多久,当前系统有多少用户在登录,系统在过去的1,5,15分钟的平均负载。
接下来的条目展示每个用户:登录名,tty 名,远程的(登录)主机,登录时间,空闲时间,JCPU,PCPU,以及当前进程的命令行。
JCPU时间是附加到所有的进程的使用时间。它不包括过去的后台程序,但是包括当前正在运行的后台程序。【不太理解】
PCPU时间是当前线程使用的时间,并在what域中展示出来。

```shell
COMMAND-LINE OPTIONS-h, --no-headerDon't print the header.-u, --no-currentIgnores the username while figuring out the current process and cpu times.  To demonstrate this, do a "su" and do a "w" and a "w -u".-s, --shortUse the short format.  Don't print the login time, JCPU or PCPU times.-f, --fromToggle printing the from (remote hostname) field.  The default as released is for the from field to not be printed, although your system administrator or distribution maintainer  mayhave compiled a version in which the from field is shown by default.--help Display help text and exit.-i, --ip-addrDisplay IP address instead of hostname for from field.-V, --versionDisplay version information.-o, --old-styleOld style output.  Prints blank space for idle times less than one minute.user   Show information about the specified user only.

Linux命令详解之w命令相关推荐

  1. Linux常用命令详解 ls -l命令详解

    Linux常用命令详解 ls -l命令详解 一.ls -l命令显示效果 使用ls -l会产生长列表格式输出,包含了目录中每个文件的更多的信息. 注:蓝色或/表示目录,如果带绿色或*号表示可执行文件. ...

  2. Linux命令详解:md5sum 命令

    Linux命令详解:md5sum 命令 一.md5 算法介绍 二.md5sum 命令使用说明 三.md5sum 命令帮助 四.md5sum 命令选项.参数 语法 选项 参数 五.md5sum 命令实战 ...

  3. linux下载命令 scp,linux命令详解之scp命令

    作用 scp命令常用于linux之间复制文件和目录. scp是secure copy的缩写, scp是linux系统下基于ssh登陆进行安全的远程文件拷贝命令. 格式 从本地复制到远程 复制文件 sc ...

  4. linux命令chgrp,Linux命令详解之–chgrp命令 | Linux大学

    摘要 Linux chgrp命令 可以用来变更文件与目录的所属群组,设置方式采用群组名称或群组识别码皆可. 我们在Linux命令详解之–chown命令 | Linux大学这篇文章中,我们介绍了更改文件 ...

  5. Touch命令详解【Shell命令】

    Touch命令详解[Shell命令] 创建一个文件shell命令:touch 文件名.文件扩展名 例如:touch hello.sh //创建一个名为hello的shell脚本文件

  6. linux vsftpd用法,Linux_LINUX系统下vsftpd 命令详解,FTP命令是Internet用户使用最频 - phpStudy...

    LINUX系统下vsftpd 命令详解 FTP命令是Internet用户使用最频繁的命令之一,不论是在DOS还是UNIX操 作系统下使用FTP,都会遇到大量的FTP内部命令. 熟悉并灵活应用FTP的内 ...

  7. VCS命令详解(一):编译命令

    VCS仿真命令详解 编译时候的命令(按字母排序) A B C D E F G H I J L M N O P Q R S T U V W Y 本文中所有命令基于VCS2014版 编译时候的命令(按字母 ...

  8. Nmap命令详解及常用命令总结

    Nmap学习 文章目录 Nmap学习 0 Nmap 介绍 1 Nmap命令详解 1.1 Nmap 命令help详解(内附中文翻译) 1.2 Nmap 命令思维导图 2 Nmap 常见使用场景以及相关命 ...

  9. 搜索系统中所有以.repo结尾的文件并删除(find命令详解及xargs命令详解)

    find / -name *.repo | xargs rm –rf //搜索以.repo结尾的文件并删除 find命令详解 精细查找文件或目录d find [ 查找范围 ] [ 查找条件表达式 ]常 ...

最新文章

  1. 【Unity3D】资源对象、预设、查找对象、组合模式等知识点
  2. libevent中的信号处理
  3. OpenCV基本绘图
  4. C语言中 if 和 else if 的区别
  5. 用户流失的事前预警与事后分析
  6. checkInterruptWhileWaiting
  7. 二叉树题目----4 前序遍历重构二叉树 AND 求二叉树中所有结点的个数
  8. SPI 读取不同长度 寄存器_[读书笔记]《计算机科学速成课》—6 寄存器和内存
  9. layui导航栏页面滚动固定_网站建设页面导航如何降低用户寻找的时间
  10. 面向Linux的10款最佳剪贴板管理器
  11. pointnet源码阅读:训练
  12. 基于libGPE读写KML文件的研究
  13. b和kb的换算_b和kb的换算(b换算成kb)
  14. Mininet-wifi安装和简单使用
  15. jarvis oj typo
  16. 华为S5700交换机端口聚合
  17. 日志收集之--将Kafka数据导入elasticsearch
  18. TweenMax学习小计
  19. 云从科技 OCR任务 pixel-anchor 方法
  20. 如何进行文献检索和阅读

热门文章

  1. AS-GCN 论文解读
  2. [转]BEHAVOUR TREE2
  3. Python微信好友数据分析
  4. Excel删除小于等于零的数据
  5. 毫米波角雷达进入“新赛道”
  6. 阿里云Centos7上安装MySQL教程
  7. KDD99数据集说明和使用--更新中
  8. 数据库using 自动关闭连接
  9. html5本地点赞状态,javascript实现手动点赞效果
  10. php redis 实现点赞,使用redis实现点赞功能的几种思路