ps Command
Purpose
Displays information about active processes.
Syntax
ps [ -a ] [ -aux ] [ -ax ] [ -e ] [ -ef ] [ -f ] [ -h ] [ -o fields ]
Description
The ps command displays information about active processes. In PowerVC virtual appliance, only read-only process listing is allowed for security. Process manipulation, sending signals, or privileged views are not allowed.
Flags
If the ps command is used without any flags, it displays the processes of the current user.
| Item | Description |
|---|---|
| -a | Displays all the processes from all the users with terminals. |
| -aux | Displays processes for all the users in a Berkeley Software Distribution (BSD) style format with details such as user, CPU, memory usage. |
| -ax | Displays processes for all the users in a Berkeley Software Distribution (BSD) style format. |
| -e | Displays all the processes. |
| -ef | Displays all the processes in full format. |
| -f | Lists the processes of the user in full format. |
| -h | Displays help about the ps command. |
| -o fields | Displays processes with a custom output. The fields variable specifies the list of columns that must be displayed. |
Examples
- To display the processes of the current user, enter the following
command:
ps - To display all the processes, enter the following command:
ps -e - To list the processes of the user in full format, enter the following
command:
ps -f - To display all the processes from all the users with terminals, enter the following
command:
ps -a - To display all the processes in full format, enter the following
command:
ps -ef - To display processes for all the users in a BSD-style format, enter the following
command:
ps -ax - To display processes for all the users in a BSD-style format with resource usage details, enter
the following command:
ps -aux - To display the processes with the user, PID, and command name information, enter the following
command:
ps -o user,pid,cmd