Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.


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

share|improve this question
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


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.