几个 linux 工具
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 #具体执行命令看下载的安装包
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
有趣話題提供最新的網路話題,內容豐富多元包含娛樂,趣味,
科技,動漫,遊戲,汽車,美食,健康,寵物,旅遊,時尚,家居,文化,歷史,親子等最新最流行的話題,讓心情快樂一整天。
Wonderful website. A lot of useful info here. I am sending it
to several friends ans additionally sharing in delicious.
And naturally, thanks for your sweat!
Everything is very open with a precise explanation of the challenges.
It was really informative. Your site is very helpful.
Thank you for sharing!
I like the valuable information you supply on your articles.
I will bookmark your weblog and check again here frequently.
I am fairly sure I will learn plenty of new stuff right here!
Good luck for the next!
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
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!
Awesome! Its really remarkable article, I have got much clear
idea concerning from this article. https://goo.gl/maps/RLPFGxUQTms
When someone writes an piece of writing he/she maintains the plan of a user
in his/her mind that how a user can understand it.
Thus that's why this paragraph is great. Thanks! https://goo.gl/maps/RLPFGxUQTms
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