View and Manage Processes on Linux
A Linux process is a running instance of a program. Process-management tools help you inspect CPU and memory use, identify stuck applications, send signals, and manage foreground or background jobs.
Inspect Processes with ps
ps
ps -e
ps auxps aux is a common BSD-style view that includes the owning user, PID, CPU, memory, and command.
For a specific program, pgrep is often cleaner than piping ps through grep:
pgrep -a nginxMonitor Processes Interactively
toptop continuously updates process and system metrics.
htop provides a more interactive interface when installed:
sudo apt install htop # Debian/Ubuntu
sudo dnf install htop # Fedora/RHEL-family systems where available
htopSend Signals with kill
The default signal from kill is SIGTERM, which asks a process to terminate cleanly:
kill PID
# equivalent to:
kill -TERM PIDIf a process does not respond and you understand the consequences, SIGKILL forces the kernel to stop it immediately:
kill -KILL PIDUse SIGKILL as a last resort because the process cannot perform cleanup or flush application state.
To signal processes by name:
pkill process_nameBe careful with broad name-based commands on shared systems.
Shell Jobs
Start a command in the background:
command &List jobs created by the current shell:
jobsBring a job back to the foreground:
fg %1Shell jobs are different from all system processes; jobs only knows about jobs managed by the current shell.
Conclusion
Use ps or pgrep for snapshots, top or htop for live monitoring, and signals such as SIGTERM for controlled shutdown. Escalate to SIGKILL only when graceful termination has failed.