Process & Service Management Flashcards
1
Q
What command shows running processes?
A
ps
2
Q
What does the command ‘ps aux’ do?
A
Shows all processes with details
3
Q
What is the command to forcefully stop a process?
A
kill -9 <PID></PID>
4
Q
Which command displays live system resource usage?
A
top
5
Q
What is ‘htop’?
A
Advanced process viewer (if installed)
6
Q
How do you check the status of a service?
A
sudo systemctl status <service></service>
7
Q
What command is used to start a service?
A
sudo systemctl start <service></service>
8
Q
What command is used to stop a service?
A
sudo systemctl stop <service></service>
9
Q
What is the command to restart a service?
A
sudo systemctl restart <service></service>