Files
my-docs/Linux/Basic-Administration/16-ps.md
2026-04-14 18:02:10 +03:30

1.4 KiB
Raw Blame History

PS Command

The ps (process status) command is used to view running processes on a Linux system. Its useful for monitoring and troubleshooting tasks.


Basic Usage

Show tasks in the current shell

ps

Show tasks in the current shell with full info

ps -f

View System-Wide Processes

Show all processes

ps -A
# or
ps -e

Show tasks by specific user

ps -u <username>

Replace <username> with the actual user name.


Show detailed info for all tasks

ps aux

Output Fields Explained

Column Description
USER Owner of the process (often root or your user)
PID Process ID
%CPU CPU usage percentage
%MEM Memory usage percentage
STAT Process state: R (running), S (sleeping), Z (zombie), etc.
START Time when the process started
TIME Total CPU time used
COMMAND Command that started the process

Show List Jobs

jobs

Move Process From Background To Foreground

fg