Monitor and Manage Processes Flashcards
What command gives statistics on file system (disk space)?
df use -h option for human readable format -T option = type of file system.
What command is used to see disk usage of each file?
du option -k can be used to view in kilobytes and -h for human readable.
What command is used to see load averages and view how long a system has been up for?
uptime
load averages are in 5min 10min and 15min increments.
What command gives a variety of info for processes that is commonly used by sysadmins?
top/htop
What commands gives memory info?
free option -m shows in megabytes.
What command lists open file system?
lsof
What command can you view network traffic (like wireshark)?
tcpdump -i enp0s3
What command can give you network statistics?
netstat -rnv option -au = all udp traffic -at = all tcp traffic
What command gives you the status of all processes?
ps -ef
What command can force stop a process?
kill option -9 is a harsh kill and kills all associates processes.
What are the types of info that is given with the command top/htop?
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