Share on Facebook Share on Twitter Email
Answers.com

Ps

 
Wikipedia: Ps (Unix)

In most Unix-like operating systems, the ps program displays the currently-running processes. 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. In Windows PowerShell, ps is a predefined command alias for the Get-Process cmdlet which basically serves the same purpose.

Contents

Examples

For example:

# ps
  PID TTY          TIME CMD
 7431 pts/0    00:00:00 su
 7434 pts/0    00:00:00 bash
18585 pts/0    00:00:00 ps

Users can also utilize the ps command in conjunction with the grep command to find information about one process, such as its process id.

An example of this is:

# ps -A | grep firefox-bin
11778 ?        02:40:08 firefox-bin
11779 ?        00:00:00 firefox-bin

Options

ps has many options. On operating systems that support the UNIX and POSIX standards, ps commonly runs with the options -ef, where "-e" selects every process and "-f" chooses the "full" output format. Another common option on these systems is -l, which specifies the "long" 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 a column for 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

External links


Search unanswered questions...
Enter a question here...
Search: All sources Community Q&A Reference topics
Shopping: Ps
Top
 
 
Learn More
Ps. (abbreviation)
PS (abbreviation)
Zalmon (place – in the Old Testament)

What does P.S stands for? Read answer...
What is a gamshark ps? Read answer...
What is the meaning P.S? Read answer...

Help us answer these
What is P.S. I Louthe you about?
What does the bice ps do?
What does PS for?

Post a question - any question - to the WikiAnswers community:

 

Copyrights:

Wikipedia. This article is licensed under the Creative Commons Attribution/Share-Alike License. It uses material from the Wikipedia article "Ps (Unix)" Read more