piątek, 10 marca 2017

atop cheat sheet

Cron

58 23 * * * killall atop
05 0 * * * rm -f /var/log/atop.log
07 0 * * * atop -w /var/log/atop.log 5

To read the log:

# atop -r /var/log/atop.log

Press t to move forward to the next 5 seconds, and press shift+t to move backwards.

To read only a certain time range from the log (b for beginning, e for end):

# atop -r atop.log -b 10:00 -e 11:00

To change the view:

g - Show generic output (default)

m - Show memory related output

s - Show scheduling characteristics

c - Show the command line of the process

Brak komentarzy:

Prześlij komentarz