几个 linux 工具

Posted on Posted in command
Tips: 本文创建于2015年10月31日,已超过 2 年,内容或图片可能已经失效!

1、w

显示谁登录了系统并执行了哪些程序

root@localhost ~# w  
 15:36:24 up  2:35,  1 user,  load average: 0.04, 0.02, 0.00  
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT  
root     pts/0    192.168.2.104    Wed23    0.00s  0.12s  0.05s w  

不显示头信息

root@localhost ~# w -h  
root     pts/0    192.168.2.104    Wed23    0.00s  0.07s  0.00s w -h  

显示指定用户的信息

root@localhost ~# w root  
 15:40:17 up  2:39,  1 user,  load average: 0.00, 0.00, 0.00  
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT  
root     pts/0    192.168.2.104    Wed23    0.00s  0.08s  0.00s w root  

2、nmon (download)

是一个显示系统性能信息的工具

root@localhost ~#  nmon_x86_64_sles11  #具体执行命令看下载的安装包  

Snip20151031_1.png

nmon 可以显示与 netwrok,cpu, memory 和磁盘使用情况的信息
按照图中的提示即可显示相关信息

3、ncdu (download)

用来分析各种目录所占的磁盘空间

cd /etc/yum.repos.d/  
wget http://download.opensuse.org/repositories/utilities/CentOS_6/utilities.repo  
yum install ncdu  

直接执行 ncdu,会显示当前目录的空间详细

ncdu + 目录名,显示目录下的空间详细,如 ncdu /

按 n 则通过文件名来排序,按 s 则按文件大小来排序(默认的)。

4、在 linux 中查找文件 locate

一个基于网络接口的带宽监控命令行程序,它会用字符来显示文本图形。

yum -y install mlocate  
updatedb  

使用

locate samba.conf  
» 转载请注明来源:呢喃 » 几个 linux 工具

5 thoughts on “几个 linux 工具

  1. Google Chrome 39.0.2171.95 Google Chrome 39.0.2171.95 Windows 8 x64 Edition Windows 8 x64 Edition
    Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36

    Currently it sounds like Movable Type is the top blogging platform available right
    now. (from what I’ve read) Is that what you are using on your blog? http://www.sophiechassat.com

  2. Firefox 52.0 Firefox 52.0 Windows XP Windows XP
    Mozilla/5.0 (Windows NT 5.1; rv:52.0) Gecko/20100101 Firefox/52.0

    You ought to be a part of a contest for one of
    the highest quality blogs on the internet.
    I’m going to recommend this web site!

  3. Google Chrome 58.0.3029.110 Google Chrome 58.0.3029.110 Mac OS X  10.11.6 Mac OS X 10.11.6
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

    Wonderful beat ! I wish to apprentice at the same time as
    you amend your web site, how could i subscribe for a blog web site?
    The account helped me a appropriate deal. I were a little bit acquainted
    of this your broadcast offered brilliant transparent concept

Comments are closed.