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
Subscribe to:
Post Comments (Atom)
DFS the life without backtracking
No comments:
Post a Comment