ps command is used to get detailed information about process running on Linux, Unix and BSD systems. There are some popular options and use cases for
ps where one of them is
aux options. We will look this use case in this tutorial. For more detailed
ps tutorial look following.
a Option Shows Process For All Users
The default behavior of the
ps command is listing only current user processes. All other users owned processes will be not shown.
a options will print all other user processes too.
$ ps a
We can see that the
a option provides more information about the listed processes. Information like the full path, parameters and stat are listed.
u Option Shows Process Owner
The default behavior about showing process information will not print the owner of the process. But in most cases, the process owner data will very helpful. So we can use u option in order to show the process owner.
$ ps u
x Option Shows Processes With Terminal Information
ps will show only terminal attached process by default. If we want to show other processes those not attached to the terminal we can use
$ ps x
ps aux Shows User, All Processes and Terminal Information
System administrators generally use all of the previously described options in order to get all details in a single ps command execution. So we can combine all these options like below which will list user, terminal information for all processes currently running on the current system.
$ ps aux