Closed Captioning Closed captioning available on our YouTube channel

How to use the ps command: 2-Minute Linux Tips

Network World | Apr 9, 2021

In this Linux tip, learn how to use the ps command. It displays information on running processes. If you want to see only certain processes, you can pass the output of a ps command to grep and specify what you want to see – for example, by username or process name.

Copyright © 2021 IDG Communications, Inc.

Similar
Hi, this is Sandra Henry-Stocker, author of the “Unix as a Second Language” blog on NetworkWorld.
In this Linux tip, we’re going to look at the ps command that displays information on running processes.
If you type nothing but ps, you will only see the processes that you are running in your current session.
I'm using bash (my shell) and using the ps command.
If I want to see all of the running processes, I can use the command ps -ef.
Notice that we see more fields too: userid, process ID, parent process ID, start time (or date), the tty being used, accumulated CPU time and the command itself.
If I want to see only certain processes, you can pass the output of a ps command to grep and specify what you want to see – for example, by username or process name.
You can also count the number of running processes.
That’s your Linux tip for the ps command.
If you have questions or would like to suggest a topic, please add a comment below. And don’t forget to subscribe to the IDG Tech(talk) channel on YouTube.
If you liked this video, please hit the like and share buttons. For more Linux tips, be sure to follow us on Facebook, YouTube and NetworkWorld.com.
Popular
Featured videos from IDG.tv