Performance Monitoring & Statistics Flashcards
1
Q
Display and manage the top processes
A
top
2
Q
interactive process viewer (top alternative)
A
htop
3
Q
display processor related statistics
A
mpstat 1
4
Q
display virtual memory statistics
A
vmstat 1
5
Q
display I/O statistics
A
iostat 1
6
Q
display the last 100 syslog messages (Use /var/log/syslog for Debian based systems)
A
tail 100 /var/log/messages
7
Q
Capture and display all packets on interface eth0
A
tcpdump -i eth0
8
Q
Monitor all traffic on port 80 (http)
A
tcpdump -i eth0 ‘port 80’
9
Q
List all open files on the system
A
lsof
10
Q
List files opened by user
A
lsof -u user
11
Q
Display free and used memory (-h for human readable, -m for MB, -g for GB)
A
free -h
12
Q
Execute “df -h, showing periodic updates
A
watch df -h