whatis process
Process
A running instance of a program, with its own memory, PID, owner, open files, and state, managed and scheduled by the kernel.
What Is a Process in Linux?
Every command you run becomes a process. New processes are created by an existing one calling fork and then exec, so every process has a parent, and they form a tree rooted at PID 1.
ps, top, and htop list processes; /proc/<pid>/ exposes their details; and signals like SIGTERM tell them to stop. A thread is a lighter-weight unit of execution that shares its process's memory.
Example
ps -eo pid,ppid,user,%cpu,cmd --sort=-%cpu | head Learn more about Process
- Understanding Linux Processes Every running program on Linux is a process. Understanding process IDs, states, parent-child relationships, signals, and how the kernel schedules work is essential for diagnosing problems and administering any Linux system.
- ps vs top vs htop: Monitoring Linux Processes ps, top, and htop are the three main tools for inspecting running processes on Linux. Each serves a different purpose. This guide covers what each tool is best for, the most useful commands and keyboard shortcuts, and how to get the information you actually need.
- Killing Processes in Linux Killing a process on Linux means sending it a signal. Understanding the difference between SIGTERM and SIGKILL, how to find the right process to target, and what to do when a process refuses to die covers everything you need.