This article covers Linux Processes Explained in detail. Every program you run on Linux – your browser, your music player, even the terminal itself – becomes one or more Linux processes. A process is simply a program that is alive and working. Understanding Linux processes means you can answer everyday questions like “what is making the fan so loud?” and fix everyday problems like a frozen application. In this guide we explain what processes are, how to list them with ps, watch them live with top and htop, and stop one safely with kill.
What Are Linux Processes, Exactly? – Linux Processes Explained
When you start a program, the kernel gives it a unique number called a PID (Process ID), its own slice of memory, and a share of the CPU’s attention. The CPU hops between processes so quickly that dozens seem to run at once. Every process also has an owner (the user who started it) and a parent – the program that launched it – forming a family tree that starts at PID 1, the very first process, which on most modern systems is systemd.
Most processes are polite background citizens: system services (“daemons”) quietly handling printing, networking, and logs. Others are your interactive programs. And occasionally one misbehaves – looping forever or grabbing all the memory – which is when the tools below become essential.
Listing Linux Processes with ps, top and htop – Linux Processes Explained
The ps command takes a snapshot. On its own it shows your current terminal’s processes; the classic combination ps aux shows everything on the system:
$ ps aux
USER PID %CPU %MEM COMMAND
alex 2451 3.2 1.8 /usr/bin/firefox
The columns tell the story: who owns it, its PID, how much CPU and memory it is using, and the command that started it. Snapshots are static, so for a live view use top – a constantly updating table sorted by appetite, where you can watch the culprit reveal itself. Press q to leave.

If top feels cryptic, install its friendlier cousin htop (on Ubuntu and Debian: sudo apt install htop). Htop shows colourful bars for each CPU core and your memory, lets you scroll and search with the arrow keys and function keys, and feels much closer to a task manager. When the machine itself feels slow, these tools pair well with our checks for how much RAM your Linux system is using.
How to Kill a Linux Process Safely
When a program freezes, you do not need to reboot. The kill command sends a process a polite request to shut down, using its PID:
$ kill 2451 # TERM signal: "please close, tidy up"
That default signal is called TERM (number 15), and well-behaved programs use it to save work and exit cleanly. If a process ignores the polite request, the stronger KILL signal (number 9) stops it immediately – but gives it no chance to save anything, so it is the last resort:
$ kill -9 2451 # force stop, use sparingly
Do not know the PID? pgrep finds it by name, and pkill can signal by name directly:
$ pgrep -a firefox
$ pkill firefox
Inside top and htop you can also kill from the list itself (in htop, highlight the process and press F9). If the process belongs to another user or the system, you will need sudo – and that is a good moment to slow down and be sure.
A Tiny Taste of Foreground, Background and Jobs
One last idea makes the process picture click. Normally a command runs in the foreground: the terminal waits, and you cannot type anything else until it finishes. Press Ctrl + Z and the current program pauses and steps aside. The command bg lets it continue in the background, fg brings it back to the front, and jobs lists everything your terminal is juggling. You can also start a program in the background directly by ending the command with an ampersand, like sleep 60 &. Why does this matter here? Because those paused and background programs are processes too – they appear in ps and top like any other. When a terminal feels “stuck,” it is often just a foreground process quietly waiting, and now you know how to set it aside instead of closing the window in a panic.
Common Beginner Mistakes with Processes
- Reaching for
kill -9first. Always try plain TERM; force-killing can corrupt the files a program was writing. - Killing things you do not recognise. System processes with low PIDs keep the machine alive. If you do not know what it is, look it up before touching it.
- Killing the parent and wondering why children remain. Some programs spawn helpers; closing the main application window usually cleans up the whole family.
- Thinking a zombie is dangerous. A “zombie” entry in the list is already dead – it is just a leftover note in the table and uses no CPU or real memory.
Conclusion
Linux processes are just running programs, each with a PID, an owner, and an appetite for CPU and memory. Snapshot them with ps, watch them live with top or the friendly htop, and stop a stuck one politely with kill, saving -9 for true emergencies. If a runaway process regularly slows your machine, our guide to diagnosing high CPU usage goes deeper, and the top manual page explains every column and key.