Services and User Management

An administrator suspects that several batch jobs are intermittently saturating the CPU. She needs per-process CPU usage sampled every 2 seconds for 5 samples. Which command meets this requirement?

Show the answer

Correct answerB. pidstat 2 5

pidstat reports CPU usage for each process at the chosen interval and count. mpstat uses the same interval syntax but reports per-processor statistics rather than per-process ones, so it cannot identify which job is responsible.