In most Unix-like operating systems, the
psprogram displays the currently-running processes. A related Unix utility named top provides a real-time view of the running processes.The
pscommand is analogous to the Microsoft Windowstasklistcommand. In Windows PowerShell,psis a predefined command alias for theGet-Processcmdlet which basically serves the same purpose.Examples
For example:
# ps PID TTY TIME CMD 7431 pts/0 00:00:00 su 7434 pts/0 00:00:00 bash18585 pts/0 00:00:00 psUsers can also utilize the ps command in conjunction with the
grepcommand to find information about one process, such as its process id.An example of this is:
# ps -A | grep firefox-bin11778 ? 02:40:08 firefox-bin11779 ? 00:00:00 firefox-binOptions
ps has many options. On operating systems that support the UNIX and POSIX standards, ps commonly runs with the options -ef , where "-e" selects e very process and "-f" chooses the " f ull" output format. Another common option on these systems is -l , which specifies the " l ong" output format.
Most systems derived from BSD fail to accept the POSIX and UNIX standard options because of historical conflicts (for example, the "e" or "-e" option will cause the display of environment variables). On such systems, ps commonly runs with the non-standard options aux , where "a" lists all processes on a terminal, including those of other users, "x" lists all processes without controlling terminals and "u" adds the controlling user for each process. Note that, for maximum compatibility when using this syntax, there is no "-" in front of the "aux". Also you can add 'www' after aux, like "ps auxwww" for complete information about the process including all parameters.
See also
toppstreepgrepkill- List of Unix programs
External links
- ps — Specification from the Single Unix Specification
- Show all running processes in Linux using ps command
ps(1): report a snapshot of the current processes –
ps (Unix) - Wikipedia, the free encyclopedia
A related Unix utility named top provides a real-time view of the running processes. The ps command is analogous to the Microsoft Windows tasklist command.
Linux and UNIX ps command help
Unix ps command help ... -a: List information about all processes most frequently requested: all those except process group leaders and processes not associated with a terminal.
ps - Linux Command - Unix Command
Linux / Unix Command Library: ps. Learn about its synopsis, description, options, and examples.
zarski.com blog
Problem: One thing that always drove me crazy was not being able to get the full listing from the ps command. For example when doing ps -elf it will cut off the command column.
Unix ps command
Softpanorama (slightly skeptical) Open Source Software Educational Society: May the source be with you, but remember the KISS principle ;-)
Reg ps command in UNIX (2nd Response) - Toolbox for IT Groups
Hi Hari,1) man ps2) ps -eax | head -1 (this will show you what each column denotes)In short:28606 - will be the ...
Linux Command ps - Unix Command
Linux / Unix Command Library: ps. If you know the 'Task-Manager" which pops up under Windows NT/2000/XP when you press CTRL+ALT+DEL then...
UNIX ps command
UNIX ps command. The ps command reports information about active processes. If no options are specified, you will see information about only those processes connected to your ...
UnixWare / Open UNIX ps command line buffer overflow vulnerability ...
UnixWare / Open UNIX ps command line buffer overflow vulnerability Date Discovered: 10 Jan 2003
Learn Unix: The "ps" command
Command: ps: Description: The "ps" command (process statistics) lets you check the status of processes that are running on your Unix system.