System Processes Flashcards
(100 cards)
What command shows real-time CPU, memory, and process usage
Top or htop
Which command provides memory, cpu and processes statistics at intervals?
Vmstat
How do you display detailed memory usage for each purpose?
Smem
What command lists all running processes with detailed info?
Ps aux
Which command kills a process using its PID
kill PID
How do you kill all processes with the same name?
killall process_name
What command finds the PID of a process by name?
pgrep process_name
What command shows processes in a tree-like format?
pstree
How do you check disk space usage for all mounted file systems?
df -h
Which command shows disk usage of a specific directory?
du -sh /path
What command monitors disk I/O performance?
iostat
How do you check memory and swap usage?
free -h
Which command lists memory usage per process with detailed breakdown?
smem
What command shows system logs from the current boot?
journalctl -b
How do you display kernel and hardware-related messages?
dmesg
How do you view logs for a specific service using systemd?
journalctl -u service_name
What command tests basic network connectivity by sending ICMP packets?
ping
How do you trace the path packets take to a network host?
traceroute
What command checks network interface configurations (newer)?
ip addr show
How do you list all open network ports and listening services?
ss -tuln
What command resolves DNS records for a domain?
dig example.com
How do you fetch a web page or test an API endpoint from the command line?
curl http://example.com
Which command tests network bandwidth between two machines?
iperf
What command scans for open ports and running services on a host?
nmap