ps
What is ps?
ps: Process Status — List running processes. ps lists running processes. ps aux shows all processes on the system with their user, CPU and memory usage, and command. ps aux | grep php finds PHP processes specifically. It is a basic tool for checking whether a service is running, which user it runs as, and whether something is using unexpected resources.
Frequently asked questions about ps
What should you keep in mind with ps?
For a live view that updates every second, top or the friendlier htop show the same information sorted by CPU or memory. pgrep name returns just the process IDs, which is handy in scripts together with kill. Inside a container, ps usually shows very few processes, often just your application as process 1, which is a quick way to confirm what the container is actually running.
At a glance
| Category | CLI commands |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |