https://www.amazon.com/dp/B0CRY8TZ1K/
In a Linux system, utilizing commands to manage processes is an essential part of working in the environment. Especially, if a process becomes stuck, it could indeed take on all the system resources. This processing could include foreground and background processes. Therefore, this instructor guide covers the most common ways to stop and manage processes. The commands can be utilized for personal, educational, or corporate usage. It is envisioned that the instructor utilize the material from this guide via a demonstration type format.
Contents
How to use and run commands
Foreground vs Background Processes
jobs
fg
bg
Commands to Find Processes
ps
ps -a
ps -u
ps aux | grep firefox
ps -ef | grep name
pgrep
pgrep -lu root
pgrep -n
pgrep -o
pgrep -i sh
pidof
pidof -s sh
pidof -c sh
pidof -x sh
top
kill, killall, pkill
kill
ps -ef
killall
killall firefox
killall -l
pkill
pkill firefox
Process Signals
Sending Signals
ps -ef
kill -15 63
kill -TERM 63
killall -15 63
killall -TERM 63
pkill -15 63
pkill -TERM 63
Conclusion
About the Author
Notes
Comments