Monitor and Manage Processes Flashcards

1
Q

What command gives statistics on file system (disk space)?

A

df use -h option for human readable format -T option = type of file system.

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

What command is used to see disk usage of each file?

A

du option -k can be used to view in kilobytes and -h for human readable.

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

What command is used to see load averages and view how long a system has been up for?

A

uptime

load averages are in 5min 10min and 15min increments.

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

What command gives a variety of info for processes that is commonly used by sysadmins?

A

top/htop

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

What commands gives memory info?

A

free option -m shows in megabytes.

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

What command lists open file system?

A

lsof

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

What command can you view network traffic (like wireshark)?

A

tcpdump -i enp0s3

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

What command can give you network statistics?

A

netstat -rnv option -au = all udp traffic -at = all tcp traffic

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

What command gives you the status of all processes?

A

ps -ef

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

What command can force stop a process?

A

kill option -9 is a harsh kill and kills all associates processes.

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

What are the types of info that is given with the command top/htop?

A

PID: Process ID
User: Owner of Process
PR: Process Priority
NI: Nice Value of Process
VIRT: Amount of Virtual Memory Used
RES: Amount of Resident Memory Used
SHR: Amount of Shared Memory Used
S: Status of Process
S: Sleeping
R: Running
I: Inactive
%CPU: CPU Usage
%MEM: Memory Usage
Time+: CPU Time Used by Task
Command: Command Name/Line + options

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