In most Unix-like operating systems, ps is a program that displays the currently running processes. A Unix-like (sometimes shortened to *nix) Operating system is one that behaves in a manner similar to a Unix system while not necessarily conforming In computing a process is an instance of a Computer program that is being sequentially executed by a computer system that has the ability to run several computer A related Unix utility named top provides a real-time view of the running processes. In most Unix-like operating systems the top command produces a frequently-updated list of processes
Contents |
An example of the ps command is:
tux ~ # 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
The ps command can also be used in conjunction with the grep command to find information about one process, such as its process id. grep is a command line text search utility originally written for Unix. An example of this is:
tux ~ # ps -A | grep firefox-bin 11778 ? 02:40:08 firefox-bin 11779 ? 00:00:00 firefox-bin
ps has many options. On operating systems that support the UNIX and POSIX standards, ps is commonly run with the options -ef, where "-e" selects every process and "-f" chooses the "full" output format. An operating system (commonly abbreviated OS and O/S) is the software component of a Computer system that is responsible for the management and coordination The Single UNIX Specification ( SUS) is the collective name of a family of standards for Computer Operating systems to qualify for the name " Unix 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 environment variables to be displayed). Environment variables are a set of dynamic values that can affect the way running processes will behave on a computer On such systems, ps is commonly used 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. A computer terminal is an electronic or electromechanical hardware device that is used for entering data into and displaying data from a Computer or a Computing 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 params.
tasklisttoppstreepgrep