Skip to content

Latest commit

 

History

History
28 lines (26 loc) · 516 Bytes

monitoring.md

File metadata and controls

28 lines (26 loc) · 516 Bytes

PS Monitoring

Top

top -o PID -d 0.5 -c

You can change the -d value by 1 to increase delay, you can modify that by pressing S.

top -o -PID -d 0.5 -c -b > log.txt&

This command logs the top outputs, so if you couldn't capture the process you can check it again.

PS

watch -n 0 'ps -eo pid,uid,cmd --sort=-pid| head'

Tail

tail -n 10 -f /var/log/syslog /var/log/auth.log

Multiple log file monitoring.

Kill PS

kill -9 $PID
killall $PNAME