Inspecting and Managing Processes
A practical guide to reading process information, choosing inspection commands, understanding Linux states, and safely ending Windows processes.
Read Listings and Choose a View
A process is a running instance of a program. The operating system assigns it a process identifier (PID) so it can be inspected or managed. Before interpreting a process listing, read the column headers: the same-looking value can mean different things in different columns, and column names and status conventions vary by operating system.
For example, a PID is an identifier—not a CPU or memory measurement. PPID identifies the process’s parent, USER its owner, and STAT its state. %CPU and %MEM are estimates of resource use. Treat high resource figures as clues, not diagnoses: a workload may explain them. Compare repeated readings and process names before deciding whether action is needed.
| Column | Meaning |
|---|---|
| PID | Process identifier |
| PPID | Parent process identifier |
| USER | Process owner |
| STAT | Process state |
| %CPU, %MEM | Estimated CPU and memory use |
| COMM | Command name |
Choose a view for the task
On Linux, ps gives a snapshot. Use ps -ef for a full-format listing, or select particular columns with:
ps -eo pid,ppid,user,stat,%cpu,%mem,comm
This requests the fields in the table. Do not assume the output is sorted: ps does not necessarily sort it unless sorting is requested.
Use top when you want to watch activity change. It repeatedly refreshes the process list alongside system summaries, so it is a live counterpart to ps; CPU percentages can vary from one update to the next. Press q to quit.
On Windows, tasklist displays running processes, commonly including an image name and PID. Add /v to request verbose fields, and use /fo list or /fo csv to choose the output format. The filter option /fi narrows the listing. For example:
tasklist /v /fi "STATUS eq running"
This asks for verbose fields while filtering for processes whose Windows STATUS is running. ps and tasklist show a listing at the time they run; top refreshes repeatedly. Windows STATUS values such as RUNNING, NOT RESPONDING, and UNKNOWN are not Linux STAT codes, so interpret each in the context of its operating system.
Interpret Linux Process States
Linux STAT letters describe process state; they are not universal labels shared by every operating system. Common Linux entries include R for running or ready to run, S for interruptible sleep while waiting for an event, and D for uninterruptible sleep, often while waiting for I/O. T means stopped, while lowercase t indicates a debugger stop. I marks an idle kernel thread.
A Z marks a zombie. The process has ended, but its parent has not yet collected its exit status. This is a key distinction: a zombie is not a still-running process that can be ended by killing its PID again. Repeating that action does not resolve the fact that its parent has not collected the status.
| STAT entry | Meaning |
|---|---|
| R | Running or ready to run |
| S | Interruptible sleep, waiting for an event |
| D | Uninterruptible sleep, often waiting for I/O |
| T / t | Stopped / stopped by a debugger |
| Z | Zombie: ended, but parent has not collected exit status |
| I | Idle kernel thread |
| + / < | Foreground process group / high priority |
Additional markers can follow a state letter. For example, + indicates a foreground process group and < indicates a high-priority process. Read these as extra information accompanying the state, not as replacements for the operating-system context.
Terminate the Intended Windows Process
On Windows, use tasklist to identify the process you intend to end, then use taskkill. The example below targets a process by its PID:
taskkill /pid 4321
taskkill can also target an image name. The /f option forces termination; /t includes child processes. Either option can discard unsaved work or stop dependent tasks, so use them only after carefully verifying the target.
A listing is only a point-in-time view: the process may end after it appears in tasklist, and a PID may later refer to a different process. Recheck the current process and its identity immediately before terminating it, especially before forcing termination or including child processes.