Blog
53688th since April 04, 2007
R
Oct 29, 2008 ( Wednesday )
( 643 )
Some commands for Linux system administration
Some of my favorate Linux tools at work:

(1) use `watch -d` whenever you want to monitor the change of some shell commands' output, i.e. use the following command to monitor the disk-sizes:

 
watch -d df -k


(2) `sar -d`: used to monitor the disk read/write

 
watch -d sar -dp 3


Pay attention to the following fields: rd_sec/s, wr_sec/s, await, %util. small await and %util tends to be good. [%util below %10 is a sign of in-memory I/O]

(3) top: after entering the `top` interface, press 'c', 'b', 'x', '1'(if you have multiple CPUs). your `top` screen will be very 'active' when your shell is running multi-process programs. you can split the resulting windows by using 'A', 'G', '-'.. read the man page..
Add tags: Linux sar top watch

by xicheng
14:11:06 | Add a comment | Modify entry | Ask xicheng

Comments:

xicheng says:
A bash function to check process tree:[RHEL5 and Ubuntu]

c() {
    ps ${1:-a} -o user,pid,ppid,pgid,sid,tpgid,tty,%cpu,%mem,vsz,rss,stat,start,cmd f;
}
At 14:18 Oct 29, 2008 EDT | Modify comment
Eljah says:
Good evening. I think people want their illusions and writers are mostly illusion. When you read their words, you read a flattened, incomplete version of the writer.
I am from East and learning to read in English, please tell me right I wrote the following sentence: "Do you want to book for a low cost airline ticket to european destinations then you will find all the airline tickets you need for your holiday cheaply at."

THX :P, Eljah.
At 07:32 Mar 14, 2009 EDT | Modify comment
Add a comment:

Read the Guidance for the first time users

Need browser cookie to submit properly

Name:
Code: