Merry Christmas & Happy 2027! Less downtime. More good times. Celebrating 13 years of sorlavit.com
Skip to content
Sorlavit KimIT Support, Network & Infrastructure Services Let’s talk

Articles are written in English. The Thai translation button opens Google Translate; code and commands stay in their original form.

Linux Commands / IT Support Guides

Find Linux resource consumers with ps

List Linux processes by CPU usage and identify the program and account behind each entry.

Compiled for Sorlavit Kim · Published · Updated · 1 min read

Environment and inputs: Linux · Bash-compatible shell; package and service names vary by distribution

Understand the problem

Use the terminal on the affected host. A snapshot is a list of processes at the time you ran the command.

Run the command

Run the example to sort processes by CPU usage. The pipe sends the list to head, which keeps up to 15 lines including the header.

ps -eo pid,ppid,user,comm,%cpu,%mem --sort=-%cpu | head -n 15

Read the output

PID identifies the process and PPID identifies its parent. USER shows the account and COMMAND shows the program name. The %CPU value is averaged over the process lifetime, so a brief spike can be missed.

Choose the next step

Confirm that a high-ranked process belongs to the service you suspect. If you need to see short spikes, use top to watch several updates during the slowdown.

Before making changes

Record the time, PID and program name before acting. Check who owns the service and what stopping it would affect.

Source & further reading

Linux manual — ps

Independently written summary reviewed on 2026-11-01. The example illustrates a possible application; it is not a client case study.

Share this article

Back to all articles