25th Anniversary Savings | 25% Off Dedicated Servers*Shop Now
25th Anniversary Savings | 25% Off VPS Hosting* †††Shop Now
Limited Inventory: High-Performance AMD-Powered Servers Now Available.* Shop Now >
Dedicated Hosting Deals | From $99/moShop Now

How To Use The ps Command in Linux

Posted on by J. Mays
Reading Time: 2 minutes

The ps command reports a snapshot of a system’s currently running processes.

The ps command is very useful at obtaining an overview or snapshot of what processes are currently running on a system.  This information can be extremely useful when attempting to discover what is causing a server to behave sluggishly.

To maximize the information that is provided by this command, there are two different methods that are suggested to be used:

ps aux or ps auxf

The difference being that the “f” flag will group together like processes into a process tree.

The process tree seen above shows you what processes belong together, with the “parent” process being the one at the top of the list, and the “child” processes that were created by the parent process appearing below.

So, what do we see in the process list?

USER – Tells us what user on the server owns/is running the process.

PID – The process ID on the server. Can be used to stop processes if needed via the commands kill or killall.

%CPU – Percentage of the CPU the process is using.

%MEM – Percentage of total RAM (memory) the process is using.

VSZ – Virtual memory size of the process. This may be stored in either the main memory (RAM), on the hard drive in swap space, or a combination of both.

RSS – Real memory (RAM) size of the process.

TTY – Indicates which terminal the process is running on. ? means they are running locally on the server, not by any remote terminal or local X terminal.

STAT – Indicates the process status. For a list of what the process statuses mean please see our knowledge base article “Linux Process Statuses”.

START – The time the process started running on the server.

TIME – The amount of CPU time in minutes and seconds that the process has been running.

COMMAND – The command that is running.


Liquid Web’s Heroic Support is always available to assist customers with this or any other issue. If you need our assistance please contact us:
Toll Free 1.800.580.4985
International 517.322.0434

Avatar for J. Mays

About the Author: J. Mays

As a previous contributor, JMays shares his insight with our Knowledge Base center. In our Knowledge Base, you'll be able to find how-to articles on Ubuntu, CentOS, Fedora and much more!

Latest Articles

What Is WebP and What Makes it Different from Other Image Formats?

Read Article

Top 10 Password Security Standards

Read Article

Top 10 Password Security Standards

Read Article

How to Install MongoDB on AlmaLinux

Read Article

How to Use the WP Toolkit to Secure and Update WordPress

Read Article