Performance Monitoring & Statistics Flashcards

1
Q

Display and manage the top processes

A

top

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

interactive process viewer (top alternative)

A

htop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

display processor related statistics

A

mpstat 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

display virtual memory statistics

A

vmstat 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

display I/O statistics

A

iostat 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

display the last 100 syslog messages (Use /var/log/syslog for Debian based systems)

A

tail 100 /var/log/messages

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Capture and display all packets on interface eth0

A

tcpdump -i eth0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Monitor all traffic on port 80 (http)

A

tcpdump -i eth0 ‘port 80’

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

List all open files on the system

A

lsof

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

List files opened by user

A

lsof -u user

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Display free and used memory (-h for human readable, -m for MB, -g for GB)

A

free -h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Execute “df -h, showing periodic updates

A

watch df -h

How well did you know this?
1
Not at all
2
3
4
5
Perfectly