Datamation content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.
Admins use ps
all the time to look at processes running on a
system. But do you make the best use of the
multitude of options this very useful tool has, or do you stick to a tiny, tested handful? Here are some ps
options to check out that you may not have encountered before.
-
ps r
: Shows only running processes.
-
ps f
: Shows children descended from their parents in an
ASCII art tree. I find this very useful when looking at problem
processes. Use with the S
option to see CPU information from
children summed up with parents.
-
ps e
: Shows the command environment for each process. This
is useful in a situation where a program works for one user but not for
another, or on one machine but not on another.
-
ps -t pts/3
: Shows processes associated with the specified
tty. I’ve found this useful when trying to work out who’s doing what on a
remote machine, and for how long.
-
ps u
: Generates much more readable and human friendly
output. Check the manpage for help with output column headings.
Options can be combined, but note that there are three types of option: a
single dash, a double dash or no dash at all. u
is different
from -u
. When combining options, the different option types must
be grouped separately (e.g., ps Sf -u jkemp
.)
There are many more options that I haven’t space to discuss here — go check
out the manpage, and get yet more improved and exciting process info (try X
or s
)!
This article was first published on ServerWatch.com.
RELATED NEWS AND ANALYSIS
-
Huawei’s AI Update: Things Are Moving Faster Than We Think
FEATURE | By Rob Enderle,
December 04, 2020
-
Keeping Machine Learning Algorithms Honest in the ‘Ethics-First’ Era
ARTIFICIAL INTELLIGENCE | By Guest Author,
November 18, 2020
-
Key Trends in Chatbots and RPA
FEATURE | By Guest Author,
November 10, 2020
-
Top 10 AIOps Companies
FEATURE | By Samuel Greengard,
November 05, 2020
-
What is Text Analysis?
ARTIFICIAL INTELLIGENCE | By Guest Author,
November 02, 2020
-
How Intel’s Work With Autonomous Cars Could Redefine General Purpose AI
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
October 29, 2020
-
Dell Technologies World: Weaving Together Human And Machine Interaction For AI And Robotics
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
October 23, 2020
-
The Super Moderator, or How IBM Project Debater Could Save Social Media
FEATURE | By Rob Enderle,
October 16, 2020
-
Top 10 Chatbot Platforms
FEATURE | By Cynthia Harvey,
October 07, 2020
-
Finding a Career Path in AI
ARTIFICIAL INTELLIGENCE | By Guest Author,
October 05, 2020
-
CIOs Discuss the Promise of AI and Data Science
FEATURE | By Guest Author,
September 25, 2020
-
Microsoft Is Building An AI Product That Could Predict The Future
FEATURE | By Rob Enderle,
September 25, 2020
-
Top 10 Machine Learning Companies 2020
FEATURE | By Cynthia Harvey,
September 22, 2020
-
NVIDIA and ARM: Massively Changing The AI Landscape
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
September 18, 2020
-
Continuous Intelligence: Expert Discussion [Video and Podcast]
ARTIFICIAL INTELLIGENCE | By James Maguire,
September 14, 2020
-
Artificial Intelligence: Governance and Ethics [Video]
ARTIFICIAL INTELLIGENCE | By James Maguire,
September 13, 2020
-
IBM Watson At The US Open: Showcasing The Power Of A Mature Enterprise-Class AI
FEATURE | By Rob Enderle,
September 11, 2020
-
Artificial Intelligence: Perception vs. Reality
FEATURE | By James Maguire,
September 09, 2020
-
Anticipating The Coming Wave Of AI Enhanced PCs
FEATURE | By Rob Enderle,
September 05, 2020
-
The Critical Nature Of IBM’s NLP (Natural Language Processing) Effort
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
August 14, 2020