Jan 15, 2009

how can you periodically print the cpu usage of a given process id in Linux

how can you periodically print the cpu usage of a given process id in Linux

We can use the top command by using -p option.
first grep by using ps -ef | grep "processname" and then use the pid.
top -p pid

No comments:

Post a Comment