We have the ps command that can tell us a lot about our running services. If we want to show the entire enchilada we can type:Code: Select all
ps auxAnd that will show a lot! It is probably a loong list. a stands for all u shows more details and x for showing all processes that are not assigned to a TTY.
You can use grep and specify but there is a better and faster way to get an overview of your running services:
Code: Select all
pstreeThis will show your running processes in the shape of a tree:
In Centos 7 I had to install psmisc first because it is not there after a minimal install.
You can specify a lot like adding command line info with
Code: Select all
pstree -a
Code: Select all
pstree -pYou may also view all processes that are initiated by you or root like this:
Code: Select all
pstree vikingCode: Select all
pstree rootpstree lists by alphabetical order as default and it is great for getting a quick overview over what is going on when you come to a new Linux PC.
There are lot of options so check the man page.
To get a quick overview you can also use programs like Glances or Atop
Pstree presents the running processes in a tidy manner.
