PS Commands in Linux

Tutorial on Linux/ Unix ps -eo Command Options With Examples

Unix PS Commands Examples

The Linux ps command is used to list all the processes running in a system. The output of this command is given in a tabular form with columns such as PID, TTY, TIME, CMD and etc, depending on the options provided along with the ps command. The ps commands in linux provides a snapshot of the current process in the system along with the detailed information. Use the below Unix ps commands examples for process monitoring.

Output Format Control -o:
The "-o" in the "ps -o" is called as the output format control. It helps to display the output in the user defined format. Format is a single argument in the form of a blank-separated or comma-separated list, which offers a way to specify individual output columns.

The recognized keywords that are used as STANDARD FORMAT SPECIFIERS in Linux ps commands are pid (Process ID), ruser (Real User), comm (Command), etc. There are also AIX format descriptors to be used along with ps -eo command.
Ps Commands In Linux Tutorial
Linux ps -eo Command :
The ps -eo command is used to view the security info of the processes running in a system. The command can be used as ps -eo euser,ruser,suser,fuser,f,comm,label. The command "ps --help" provides a list of options that are available to use along with the "ps -eo" command.

The security information about these processes are useful for system administrators to effectively adminster the system for high performance. This simple ps commands in linux tutorial briefs the use of ps -eo command along with some unix ps commands examples for you to understand.

ps - eo syntax:
ps -eo [options]
Linux Ps Command Syntax
Linux/UNIX ps -eoCommand Examples:
Given here are some of the examples of ps -eo commands with screenshots for your understanding. Click on the below links to learn in detail about these individual "ps -eo" command.
Ps Eo Examples
ps -eo euser,ruser,suser,fuser,f,comm,label - Displays security info
ps -eo "%p %y %x %c" - AIX format descriptors
ps -eo %C - ratio of "CPU time used" to "CPU time available", expressed as percentage
ps -eo %G - control groups to which the process belongs
ps -eo %P - decimal value of the parent process id of the process
ps -eo %U - effective user ID of the process
ps -eo %a - full command of the process
ps -eo %c - short name of the command of the process
ps -eo %g - real group ID of the process
ps -eo %n - decimal value of the process nice value
ps -eo %p - process ids of all the processes in ascending order
ps -eo %r - decimal value of the process group ID
ps -eo %t - elapsed time since the process started
ps -eo %u - real user ID of the process
ps -eo %x - cumulative CPU time since the process started
ps -eo %y - name of the controlling terminal of the process
ps -eo %z - virtual memory occupied by the process
ps -eo %t - elapsed time since the process started
Unix Ps Eo Examples
"ps -eo" commands in linux with screenshots:
Here are the screenshots for some of the above said linux/unix ps commands for your understanding.
Ps O Screenshot1

Ps O Screenshot2

Ps O Sc3

Ps O Sc4

Ps O Sc5

Ps O Sc6

Ps O Sc7

Ps O Sc8