Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to use pidstat to get both -u, -r and -d flags. Is there a way to do so?

The idea, is to get both CPU, I/O and disk usage.

Cheers

Ps. Combining the flags as -urd doesn't work in Ubuntu 11.04

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You have to add the -h flag. This display all activities horizontally on a single line.

pidstat -urd -h

share|improve this answer
    
Thanks man, this is awesome! :-) Btw never paid too much attention to that very useful flag! –  Emanuele Feb 15 '12 at 22:18

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.