Watch a process with pid under Linux.
Less than 1 minute
Watch a process with pid under Linux.
We need pidstat
command to monitor processes.
e.g.: pidstat -p [pid] 1
, this can print the status each second.
We need pidstat
command to monitor processes.
e.g.: pidstat -p [pid] 1
, this can print the status each second.