Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/./man/man1/ps.1
Real path: /usr/share/man/man1/ps.1
Zurück
'\" te .\" Copyright (c) 1989, AT&T. All rights reserved. .\" Copyright (c) 1992, The X/Open Company Ltd. All rights reserved. .\" Portions Copyright (c) 2009, 2022, Oracle and/or its affiliates. .\" Oracle gratefully acknowledges The Open Group for permission to reproduce portions of its copyrighted documentation. Original documentation from The Open Group can be obtained online at http://www.opengroup.org/bookstore/. .\" The Institute of Electrical and Electronics Engineers and The Open Group, have given us permission to reprint portions of their documentation. In the following statement, the phrase "this text" refers to portions of the system documentation. Portions of this text are reprinted and reproduced in electronic form in the Sun OS Reference Manual, from IEEE Std 1003.1, 2004 Edition, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between these versions and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html. This notice shall appear on any product containing this material. .TH ps 1 "29 Nov 2022" "Oracle Solaris 11.4" "User Commands" .SH NAME ps \- report process status .SH SYNOPSIS .LP .nf \fBps\fR [\fB-aAcdefHjlLPwWyZ\fR] [\fB-C\fR \fIcmdlist\fR] [\fB-g\fR \fIpgrplist\fR|\fIgrouplist\fR] [\fB-h\fR|\fB--lgroup\fR \fIlgrplist\fR] [\fB-n\fR \fInamelist\fR] [\fB-o\fR|\fB--format\fR \fIformat\fR]... [\fB-O\fR \fIformat\fR]... [\fB-p\fR|\fB--pid\fR \fIproclist\fR] [\fB--pgid\fR \fIpgrplist\fR] [\fB--ppid\fR \fIproclist\fR] [\fB-s\fR|\fB--sid\fR \fIsidlist\fR] [\fB-t\fR|\fB--tty\fR \fItermlist\fR] [\fB-u\fR|\fB--user\fR \fIuidlist\fR] [\fB-U\fR|\fB--User\fR \fIuidlist\fR] [\fB--group\fR \fIgidlist\fR] [\fB-G\fR|\fB--Group\fR \fIgidlist\fR] [\fB-z\fR \fIzonelist\fR] [\fB--columns\fR|\fB--cols\fR|\fB--width\fR \fIcolumns\fR] [\fB--lines\fR|\fB--rows\fR \fIlines\fR] [\fB--headers\fR] [\fB--no-headers\fR|\fB--no-heading\fR] [\fB--human-readable\fR] [\fB--scale\fR[=\fIitem1\fR,\fIitem2\fR,...]] [\fB-?\fR|\fB--help\fR] .fi .LP .nf \fBps\fR [\fBaceglnrSuUvwx\fR] [\fB-t\fR \fIterm\fR] [\fB--scale\fR[=\fIitem1\fR,\fIitem2\fR,...]] [\fInum\fR] .fi .SH DESCRIPTION .sp .LP The \fBps\fR command prints information about active processes. Without options, \fBps\fR prints information about processes that have the same effective user \fBID\fR and the same controlling terminal as the invoker, and the output contains only the process \fBID\fR, terminal identifier, cumulative execution time, and the command name. Otherwise, the information that is displayed is controlled by the options. .sp .LP A number of options are provided to select the processes to list. If any of these options are specified, the processes listed are determined by the inclusive OR of processes selected by the specified options. When the \fB-A\fR or \fB-e\fR option is specified, other options to select processes by more selective criteria have no effect, and are unnecessary. .sp .LP Some options accept lists as arguments. Items in a list can be either separated by commas or else enclosed in quotes and separated by commas or spaces. Repeated options are allowed. Each option adds additional items to the list. Values for \fIlgrplist\fR, \fIproclist\fR, \fIpgrplist\fR, and \fIsidlist\fR must be numeric. .SH OPTIONS .sp .LP The following options are supported: .sp .ne 2 .mk .na \fB\fB-a\fR\fR .ad .br .sp .6 .RS 4n List information about \fBa\fRll processes most frequently requested: all those except session leaders and processes not associated with a terminal. .RE .sp .ne 2 .mk .na \fB\fB-A\fR\fR .ad .br .sp .6 .RS 4n List information for all processes. .RE .sp .ne 2 .mk .na \fB\fB-c\fR\fR .ad .br .sp .6 .RS 4n Print information in a format that reflects scheduler properties as described in \fBpriocntl\fR(1) man page. The \fB-c\fR option affects the output of the \fB-f\fR and \fB-l\fR options, as described below. .RE .sp .ne 2 .mk .na \fB\fB-C\fR \fIcmdlist\fR\fR .ad .br .sp .6 .RS 4n List information for processes for which the name of the command is listed in \fIcmdlist\fR. Only reports processes for which the full base name of the command matches the given string. It does not perform substring matches or include path names. For more complex matching operations, see \fBpgrep\fR(1) and Example 4 below. .RE .sp .ne 2 .mk .na \fB\fB-d\fR\fR .ad .br .sp .6 .RS 4n List information about all processes except session leaders. .RE .sp .ne 2 .mk .na \fB\fB-e\fR\fR .ad .br .sp .6 .RS 4n List information about \fBe\fRvery process now running. Identical to \fB-A\fR, above, but less portable as only \fB-A\fR is specified by the POSIX standard. .RE .sp .ne 2 .mk .na \fB\fB-f\fR\fR .ad .br .sp .6 .RS 4n Generate a full listing. See \fBDISPLAY FORMATS\fR below. .RE .sp .ne 2 .mk .na \fB\fB-g\fR \fIpgrplist\fR|\fIgrouplist\fR\fR .ad .br .sp .6 .RS 4n The \fB-g\fR option provides a hybrid of the \fB--pgid\fR and \fB--group\fR options, using heuristics to determine whether the argument refers to process groups or user groups. If all argument values are numeric, the behavior is that of \fB--pgid\fR, providing the traditional Solaris behavior of matching by process groups. If any argument value contains an alphabetic character, \fB-g\fR instead provides the behavior of the \fB--group\fR option, for compatibility with the behavior of \fBps\fR on other platforms. Multiple instances of \fB-g\fR are allowed. The determination of which behavior to provide is made independently for each instance of the \fB-g\fR, and is applied to all values provided for that instance. .RE .sp .ne 2 .mk .na \fB\fB--group\fR=\fIgidlist\fR\fR .ad .br .sp .6 .RS 4n List information for processes whose effective group ID numbers are given by \fIgidlist\fR. .RE .sp .ne 2 .mk .na \fB\fB-G\fR \fIgidlist\fR, \fB--Group\fR=\fIgidlist\fR\fR .ad .br .sp .6 .RS 4n List information for processes whose real group ID numbers are given by \fIgidlist\fR. .RE .sp .ne 2 .mk .na \fB\fB-h\fR \fIlgrplist\fR, \fB--lgroup\fR=\fIlgrplist\fR\fR .ad .br .sp .6 .RS 4n List information for processes homed to the specified \fIlgrplist\fR. Nothing is listed for any invalid group specified in \fIlgrplist\fR. .RE .sp .ne 2 .mk .na \fB\fB-H\fR\fR .ad .br .sp .6 .RS 4n Print the home lgroup of the process under an additional column header, \fBLGRP\fR. This column can also be enabled by specifying the \fBlgrp\fR name with the \fB-o\fR or \fB-O\fR options. .RE .sp .ne 2 .mk .na \fB\fB-j\fR\fR .ad .br .sp .6 .RS 4n Print session \fBID\fR and process group \fBID\fR. These columns can also be enabled by specifying the \fBpgid\fR and \fBsid\fR names with the \fB-o\fR or \fB-O\fR options. .RE .sp .ne 2 .mk .na \fB\fB-l\fR\fR .ad .br .sp .6 .RS 4n Generate a long listing. See \fBDISPLAY FORMATS\fR below. .RE .sp .ne 2 .mk .na \fB\fB-L\fR\fR .ad .br .sp .6 .RS 4n Print information about each light weight process (\fIlwp\fR) in each selected process. See \fBDISPLAY FORMATS\fR below. .RE .sp .ne 2 .mk .na \fB\fB-n\fR \fInamelist\fR\fR .ad .br .sp .6 .RS 4n This option is accepted for compatibility, but is ignored. .RE .sp .ne 2 .mk .na \fB\fB-o\fR \fIformat\fR, \fB--format\fR=\fIformat\fR\fR .ad .br .sp .6 .RS 4n Format displayed information according to the format specification given by \fIformat\fR. See \fBDISPLAY FORMATS\fR. Multiple \fB-o\fR or \fB--format\fR options can be specified; the format specification is interpreted as the space-character-separated concatenation of all the \fIformat\fR option-arguments. .RE .sp .ne 2 .mk .na \fB\fB-O\fR \fIformat\fR\fR .ad .br .sp .6 .RS 4n Identify additional fields to be added, removed, or modified from the default output. The \fIformat\fR argument is the same as that accepted by the \fB-o\fR option. See \fBDISPLAY FORMATS\fR. Prepend the format specifier with a \fB-\fR character to remove that field rather than add it. In the case of a field already already present in the output format, the new header and width take precedence. .RE .sp .ne 2 .mk .na \fB\fB-p\fR \fIproclist\fR, \fB--pid\fR=\fIproclist\fR\fR .ad .br .sp .6 .RS 4n List information for processes whose process \fBID\fR numbers are given by \fIproclist\fR. .RE .sp .ne 2 .mk .na \fB\fB--pgid\fR=\fIpgrplist\fR\fR .ad .br .sp .6 .RS 4n List information for processes with the group leader \fBID\fR number(s) given by \fIpgrplist\fR. A group leader is a process whose process \fBID\fR number is identical to its process group \fBID\fR number. .RE .sp .ne 2 .mk .na \fB\fB--ppid\fR=\fIproclist\fR\fR .ad .br .sp .6 .RS 4n List information for processes with the parent process \fBID\fR number(s) given by \fIproclist\fR. .RE .sp .ne 2 .mk .na \fB\fB-P\fR\fR .ad .br .sp .6 .RS 4n Print the number of the processor to which the process or \fBlwp\fR is bound, if any, under an additional column header, \fBPSR\fR. This column can also be enabled by specifying the \fBpsr\fR name with the \fB-o\fR or \fB-O\fR options. .RE .sp .ne 2 .mk .na \fB\fB-s\fR \fIsidlist\fR, \fB--sid\fR=\fIsidlist\fR\fR .ad .br .sp .6 .RS 4n List information for processes whose session \fBID\fR numbers are specified by \fIsidlist\fR. .RE .sp .ne 2 .mk .na \fB\fB-t\fR \fIterm\fR, \fB--tty\fR=\fIterm\fR\fR .ad .br .sp .6 .RS 4n List information for processes associated with \fIterm\fR. Terminal identifiers are specified as a device file name, and an identifier. For example, \fBterm/a\fR, or \fBpts/0\fR. .RE .sp .ne 2 .mk .na \fB\fB-u\fR \fIuidlist\fR, \fB--user\fR=\fIuidlist\fR\fR .ad .br .sp .6 .RS 4n List information for processes with the effective user \fBID\fR number or login name given by \fIuidlist\fR. .RE .sp .ne 2 .mk .na \fB\fB-U\fR \fIuidlist\fR, \fB--User\fR=\fIuidlist\fR\fR .ad .br .sp .6 .RS 4n List information for processes with the real user \fBID\fR numbers or login names given by \fIuidlist\fR. .RE .sp .ne 2 .mk .na \fB\fB-w\fR\fR .ad .br .sp .6 .RS 4n The \fB-w\fR option overrides output line length. Specify \fB-w\fR once to truncate lines at 132 characters of output. Specify \fB-w\fR two or more times to allow unlimited line length without truncation. See DISPLAY WIDTH. .RE .sp .ne 2 .mk .na \fB\fB-W\fR\fR .ad .br .sp .6 .RS 4n Reset the display column width to the default, overriding any preceding \fB-w\fR, \fB--columns\fR, \fB--cols\fR, or \fB--width\fR options. See DISPLAY WIDTH. .RE .sp .ne 2 .mk .na \fB\fB-y\fR\fR .ad .br .sp .6 .RS 4n Alter the long listing format displayed by the \fB-l\fR option to omit the obsolete \fBF\fR and \fBADDR\fR columns, to include an \fBRSS\fR column to report the resident set size of the process in kilobytes, and to modify the \fBSZ\fR column to display in units of kilobytes rather than pages. See \fBDISPLAY FORMATS\fR. .RE .sp .ne 2 .mk .na \fB\fB-z\fR \fIzonelist\fR\fR .ad .br .sp .6 .RS 4n List information for processes in the specified zones. Zones can be specified either by name or ID. This option is only useful when executed in the global zone. .RE .sp .ne 2 .mk .na \fB\fB-Z\fR\fR .ad .br .sp .6 .RS 4n Print the name of the zone with which the process is associated under an additional column header, \fBZONE\fR. The \fBZONE\fR column width is limited to 8 characters. Use \fBps\fR \fB-eZ\fR for a quick way to see information about every process now running along with the associated zone name. Use .sp .sp .in +2 .nf ps -o zone,uid,pid,ppid,time,comm,... .fi .in -2 .sp to see zone names wider than 8 characters. .RE .sp .ne 2 .mk .na \fB\fB--columns\fR=\fIcolumns\fR, \fB--cols\fR=\fIcolumns\fR, \fB--width\fR=\fIcolumns\fR\fR .ad .br .sp .6 .RS 4n Specify the number of columns, overriding the \fBCOLUMNS\fR environment variable. See DISPLAY WIDTH. .RE .sp .ne 2 .mk .na \fB\fB--headers\fR\fR .ad .br .sp .6 .RS 4n Display per-page headers. Page size is determined as follows, listed in order of priority. .RS +4 .TP 1. The last specified value of either a \fB--lines\fR or \fB--rows\fR option on the command line. .RE .RS +4 .TP 2. The \fBLINES\fR environment variable. .RE .RS +4 .TP 3. If output or input is a tty, the tty height. .RE .RE .sp .ne 2 .mk .na \fB\fB--no-headers\fR, \fB--no-heading\fR\fR .ad .br .sp .6 .RS 4n Omit the column headers from the output. .RE .sp .ne 2 .mk .na \fB\fB--lines\fR=\fIlines\fR, \fB--rows\fR=\fIlines\fR\fR .ad .br .sp .6 .RS 4n Specify the number of rows per page of output, overriding the \fBLINES\fR environment variable. See the \fB--headers\fR option for details. .RE .sp .ne 2 .mk .na \fB\fB--human-readable\fR\fR .ad .br .sp .6 .RS 4n Print memory sizes scaled to a human readable format, instead of as raw numbers of pages or kilobytes. The \fB--human-readable\fR option is equivalent to using the \fB--scale=max,1024\fR option. .RE .sp .ne 2 .mk .na \fB\fB--scale[=item1,item2,...\fR]\fR .ad .br .sp .6 .RS 4n Print memory sizes scaled to a human readable format, instead of as raw numbers of pages or kilobytes. For example, \fB14K\fR, \fB234M\fR, \fB2.7G\fR, or \fB3.0T\fR. Scaling is done by repetitively dividing the number of bytes by \fB1024\fR, unless otherwise specified. \fB--scale\fR specified without arguments enables default scaled output, and is equivalent to \fB--scale=max,1024\fR. See \fBscale\fR(7) for a complete description of \fB--scale\fR features. .RE .sp .ne 2 .mk .na \fB\fB-?\fR, \fB--help\fR\fR .ad .br .sp .6 .RS 4n Print the usage synopsis and exit without doing anything else. .RE .SS "UCB options" .sp .LP Previous versions of Oracle Solaris provided an alternative \fBps\fR command, \fB/usr/ucb/ps\fR, derived from BSD UNIX. The UCB version of ps is no longer part of Oracle Solaris. Instead, the standard \fBps\fR command provides an emulation of UCB \fBps\fR behavior when the following UCB options are specified. The UCB options are not prefixed with a hyphen (\fB-\fR) character, distinguishing them from the standard options described previously. Standard and UCB options cannot be mixed in a single \fBps\fR invocation. .sp .ne 2 .mk .na \fB\fBa\fR\fR .ad .br .sp .6 .RS 4n Includes information about processes owned by others. .RE .sp .ne 2 .mk .na \fB\fBc\fR\fR .ad .br .sp .6 .RS 4n Displays the command name rather than the command arguments. .RE .sp .ne 2 .mk .na \fB\fBe\fR\fR .ad .br .sp .6 .RS 4n Displays the environment as well as the arguments to the command. .RE .sp .ne 2 .mk .na \fB\fBg\fR\fR .ad .br .sp .6 .RS 4n Displays all processes. Without this option, \fBps\fR only prints interesting processes. Processes are deemed to be uninteresting if they are process group leaders. This normally eliminates top-level command interpreters and processes waiting for users to login on free terminals. .RE .sp .ne 2 .mk .na \fB\fBl\fR\fR .ad .br .sp .6 .RS 4n Displays a long listing, with fields \fBF\fR, \fBPPID\fR, \fBCP\fR, \fBPRI\fR, \fBNI\fR, \fBSZ\fR, \fBRSS\fR, and \fBWCHAN\fR as described below. .RE .sp .ne 2 .mk .na \fB\fBn\fR\fR .ad .br .sp .6 .RS 4n Produces numerical output for some fields. In a user listing, the \fBUSER\fR field is replaced by a \fBUID\fR field. .RE .sp .ne 2 .mk .na \fB\fBr\fR\fR .ad .br .sp .6 .RS 4n Restricts output to running and runnable processes. .RE .sp .ne 2 .mk .na \fB\fBS\fR\fR .ad .br .sp .6 .RS 4n Displays accumulated \fBCPU\fR time used by this process and all of its reaped children. .RE .sp .ne 2 .mk .na \fB\fBt\fR \fIterm\fR\fR .ad .br .sp .6 .RS 4n List information for processes associated with the terminal, \fIterm\fR. Terminal identifiers may be specified in one of two forms: the device's file name (for example, \fBtty04\fR or \fBterm/14\fR) or, if the device's file name starts with \fBtty\fR, just the digit identifier (for example, \fB04\fR). .RE .sp .ne 2 .mk .na \fB\fBu\fR\fR .ad .br .sp .6 .RS 4n Displays user-oriented output. This includes fields \fBUSER\fR, \fB%CPU\fR, \fB%MEM\fR, \fBSZ\fR, \fBRSS\fR, and \fBSTART\fR as described below. .RE .sp .ne 2 .mk .na \fB\fBU\fR\fR .ad .br .sp .6 .RS 4n Obsolete. This option no longer has any effect. It causes \fBps\fR to exit without printing the process listing. .RE .sp .ne 2 .mk .na \fB\fBv\fR\fR .ad .br .sp .6 .RS 4n Displays a version of the output containing virtual memory. This includes fields \fBSIZE\fR, \fB%CPU\fR, \fB%MEM\fR, and \fBRSS\fR described below. .RE .sp .ne 2 .mk .na \fB\fBw\fR\fR .ad .br .sp .6 .RS 4n Uses a wide output format, that is, 132 columns rather than 80. If the option letter is repeated, that is, \fBww\fR, this option uses arbitrarily wide output. This information is used to decide how much of long commands to print. .RE .sp .ne 2 .mk .na \fB\fBx\fR\fR .ad .br .sp .6 .RS 4n Includes processes with no controlling terminal. .RE .sp .ne 2 .mk .na \fB\fInum\fR\fR .ad .br .sp .6 .RS 4n A process number may be given, in which case the output is restricted to that process. This option must be supplied last. .RE .SH DISPLAY FORMATS .sp .LP Under the \fB-L\fR option, or when lwp-specific columns are specified for the \fB-o\fR option, one line is printed for each lwp in the process and the time-reporting fields \fBSTIME\fR and \fBLTIME\fR show the values for the lwp, not the process. A traditional single-threaded process contains only one lwp. .sp .LP A process that has exited and has a parent, but has not yet been waited for by the parent, is marked \fB<defunct>\fR. .SS "\fB-o\fR format" .sp .LP The \fB-o\fR option allows the output format to be specified under user control. .sp .LP The format specification must be a list of names presented as a single argument, blank- or comma-separated. Each variable has a default width and header. The default width can be overridden by adding a colon followed by a number but it will be ignored if it is smaller than the minimum width of that column. If a double colon is used instead and it is applied to the last column, the field will be truncated to that width. The default header can be overridden by appending an equals sign and the new text of the header. The rest of the characters in the argument is used as the header text. The fields specified are written in the order specified on the command line, and should be arranged in columns in the output. The field widths are selected by the system to be at least as wide as the header text (default or overridden value). If the header text is null, such as \fB-o\fR \fIuser=,\fR the field width is at least as wide as the default header text. If all header text fields are null, no header line is written. .sp .LP The following names are defined by the POSIX standard: .sp .ne 2 .mk .na \fB\fBuser\fR\fR .ad .br .sp .6 .RS 4n The effective user \fBID\fR of the process. This is the textual user \fBID\fR, if it can be obtained and the field width permits, or a decimal representation otherwise. .RE .sp .ne 2 .mk .na \fB\fBruser\fR\fR .ad .br .sp .6 .RS 4n The real user \fBID\fR of the process. This is the textual user \fBID\fR, if it can be obtained and the field width permits, or a decimal representation otherwise. .RE .sp .ne 2 .mk .na \fB\fBgroup\fR\fR .ad .br .sp .6 .RS 4n The effective group \fBID\fR of the process. This is the textual group \fBID\fR, if it can be obtained and the field width permits, or a decimal representation otherwise. .RE .sp .ne 2 .mk .na \fB\fBrgroup\fR\fR .ad .br .sp .6 .RS 4n The real group \fBID\fR of the process. This is the textual group \fBID\fR, if it can be obtained and the field width permits, or a decimal representation otherwise. .RE .sp .ne 2 .mk .na \fB\fBpid\fR\fR .ad .br .sp .6 .RS 4n The decimal value of the process \fBID\fR. .RE .sp .ne 2 .mk .na \fB\fBppid\fR\fR .ad .br .sp .6 .RS 4n The decimal value of the process \fBID\fR of the parent process. .RE .sp .ne 2 .mk .na \fB\fBpgid\fR\fR .ad .br .sp .6 .RS 4n The decimal value of the process \fBID\fR of the process group leader. .RE .sp .ne 2 .mk .na \fB\fBpcpu\fR\fR .ad .br .sp .6 .RS 4n The ratio of CPU time used recently to CPU time available in the same period, expressed as a percentage. The meaning of "recently" in this context is unspecified. The CPU time available is determined in an unspecified manner. .RE .sp .ne 2 .mk .na \fB\fBvsz\fR\fR .ad .br .sp .6 .RS 4n The total size of the process in virtual memory, in kilobytes. .RE .sp .ne 2 .mk .na \fB\fBnice\fR\fR .ad .br .sp .6 .RS 4n Nice value, used in priority computation. Only processes in certain scheduling classes have a nice value. See the \fBnice\fR(1) man page. .RE .sp .ne 2 .mk .na \fB\fBetime\fR\fR .ad .br .sp .6 .RS 4n The elapsed time since the process was started. In the POSIX locale, has the form: .sp \fB[[\fR\fIdd\fR-\fB]\fR\fIhh\fR:\fB]\fR\fImm\fR:\fIss\fR .sp where .sp .sp .ne 2 .mk .na \fB\fIdd\fR\fR .ad .RS 6n .rt is the number of days .RE .sp .ne 2 .mk .na \fB\fIhh\fR\fR .ad .RS 6n .rt is the number of hours .RE .sp .ne 2 .mk .na \fB\fImm\fR\fR .ad .RS 6n .rt is the number of minutes .RE .sp .ne 2 .mk .na \fB\fIss\fR\fR .ad .RS 6n .rt is the number of seconds .RE The \fIdd\fR field is a decimal integer. The \fIhh\fR, \fImm\fR and \fIss\fR fields are two-digit decimal integers padded on the left with zeros. .RE .sp .ne 2 .mk .na \fB\fBtime\fR\fR .ad .br .sp .6 .RS 4n The cumulative CPU time of the process or LWP. In the POSIX locale, has the form: .sp \fB[\fR\fIdd\fR-\fB]\fR\fIhh\fR:\fImm\fR:\fIss\fR .sp The \fIdd\fR, \fIhh\fR, \fImm\fR, and \fIss\fR fields are as described in the \fBetime\fR specifier. .RE .sp .ne 2 .mk .na \fB\fBtty\fR\fR .ad .br .sp .6 .RS 4n The name of the controlling terminal of the process (if any) in the same format used by the \fBwho\fR(1) command. \fB?\fR is printed for processes with no controlling terminal. .RE .sp .ne 2 .mk .na \fB\fBcomm\fR\fR .ad .br .sp .6 .RS 4n The name of the command being executed (\fBargv[0]\fR value) as a string. .RE .sp .ne 2 .mk .na \fB\fBargs\fR\fR .ad .br .sp .6 .RS 4n The command with all its arguments as a string. The Oracle Solaris implementation does not limit the length of the string, but may truncate the displayed string as described in DISPLAY WIDTH. The string is the version of the argument list as it was passed to the command when it started. Applications cannot depend on being able to modify their argument list and having that modification be reflected in the output of \fBps\fR. .RE .sp .LP The following names are additionally recognized in the Oracle Solaris implementation: .sp .ne 2 .mk .na \fB\fBf\fR\fR .ad .br .sp .6 .RS 4n Flags (hexadecimal and additive) associated with the process. These flags are available for historical purposes; no meaning should be currently ascribed to them. .RE .sp .ne 2 .mk .na \fB\fBs\fR\fR .ad .br .sp .6 .RS 4n The state of the process: .sp .ne 2 .mk .na \fBO\fR .ad .RS 5n .rt Process is running on a processor. .RE .sp .ne 2 .mk .na \fBS\fR .ad .RS 5n .rt Sleeping: process is waiting for an event to complete. .RE .sp .ne 2 .mk .na \fBR\fR .ad .RS 5n .rt Runnable: process is on run queue. .RE .sp .ne 2 .mk .na \fBT\fR .ad .RS 5n .rt Process is stopped, either by a job control signal or because it is being traced. .RE .sp .ne 2 .mk .na \fBW\fR .ad .RS 5n .rt Waiting: process is waiting for CPU usage to drop to the CPU-caps enforced limits. .RE .sp .ne 2 .mk .na \fBZ\fR .ad .RS 5n .rt Zombie state: process terminated and parent not waiting. .RE .RE .sp .ne 2 .mk .na \fB\fBc\fR\fR .ad .br .sp .6 .RS 4n Processor utilization for scheduling (obsolete). .RE .sp .ne 2 .mk .na \fB\fBuid\fR\fR .ad .br .sp .6 .RS 4n The effective user \fBID\fR number of the process as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBruid\fR\fR .ad .br .sp .6 .RS 4n The real user \fBID\fR number of the process as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBsuid\fR\fR .ad .br .sp .6 .RS 4n The saved user \fBID\fR number of the process as a decimal integer. "\fB?\fR" will be displayed for any process for which \fBps\fR does not have privileges to open \fB/proc/\fIpid\fR/cred\fR. .RE .sp .ne 2 .mk .na \fB\fBsuser\fR\fR .ad .br .sp .6 .RS 4n The saved user \fBID\fR of the process. This is the textual user \fBID\fR, if it can be obtained and the field width permits, or a decimal representation otherwise. "\fB?\fR" will be displayed for any process for which \fBps\fR does not have privileges to open \fB/proc/\fIpid\fR/cred\fR. .RE .sp .ne 2 .mk .na \fB\fBgid\fR\fR .ad .br .sp .6 .RS 4n The effective group \fBID\fR number of the process as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBrgid\fR\fR .ad .br .sp .6 .RS 4n The real group \fBID\fR number of the process as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBsgid\fR\fR .ad .br .sp .6 .RS 4n The saved group \fBID\fR number of the process as a decimal integer. "\fB?\fR" will be displayed for any process for which \fBps\fR does not have privileges to open \fB/proc/\fIpid\fR/cred\fR. .RE .sp .ne 2 .mk .na \fB\fBsgroup\fR\fR .ad .br .sp .6 .RS 4n The saved group \fBID\fR of the process. This is the textual group \fBID\fR, if it can be obtained and the field width permits, or a decimal representation otherwise. "\fB?\fR" will be displayed for any process for which \fBps\fR does not have privileges to open \fB/proc/\fIpid\fR/cred\fR. .RE .sp .ne 2 .mk .na \fB\fBprojid\fR\fR .ad .br .sp .6 .RS 4n The project \fBID\fR number of the process as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBproject\fR\fR .ad .br .sp .6 .RS 4n The project \fBID\fR of the process as a textual value if that value can be obtained; otherwise, as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBzoneid\fR\fR .ad .br .sp .6 .RS 4n The zone \fBID\fR number of the process as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBzone\fR\fR .ad .br .sp .6 .RS 4n The zone \fBID\fR of the process as a textual value if that value can be obtained; otherwise, as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBsid\fR\fR .ad .br .sp .6 .RS 4n The decimal value of the process \fBID\fR of the session leader. .RE .sp .ne 2 .mk .na \fB\fBtaskid\fR\fR .ad .br .sp .6 .RS 4n The task \fBID\fR of the process. .RE .sp .ne 2 .mk .na \fB\fBclass\fR\fR .ad .br .sp .6 .RS 4n The scheduling class of the process. See the USAGE section of the \fBpriocntl\fR(1) man page for information on scheduling classes. .RE .sp .ne 2 .mk .na \fB\fBpri\fR\fR .ad .br .sp .6 .RS 4n The priority of the process for the scheduler used in Solaris 2.0 and later releases. Higher numbers mean higher priority. .RE .sp .ne 2 .mk .na \fB\fBopri\fR\fR .ad .br .sp .6 .RS 4n The obsolete priority of the process displayed as used in the SunOS 4.x scheduler. Lower numbers mean higher priority. .RE .sp .ne 2 .mk .na \fB\fBlwp\fR\fR .ad .br .sp .6 .RS 4n The decimal value of the lwp \fBID\fR. Requesting this formatting option causes one line to be printed for each lwp in the process. .RE .sp .ne 2 .mk .na \fB\fBlname\fR\fR .ad .br .sp .6 .RS 4n The thread name of the lwp \fBID\fR. Requesting this formatting option causes one line to be printed for each lwp in the process. .RE .sp .ne 2 .mk .na \fB\fBnlwp\fR\fR .ad .br .sp .6 .RS 4n The number of lwps in the process. .RE .sp .ne 2 .mk .na \fB\fBpsr\fR\fR .ad .br .sp .6 .RS 4n The number of the processor to which the process or lwp is bound. .RE .sp .ne 2 .mk .na \fB\fBpset\fR\fR .ad .br .sp .6 .RS 4n The \fBID\fR of the processor set to which the process or lwp is bound. .RE .sp .ne 2 .mk .na \fB\fBaddr\fR\fR .ad .br .sp .6 .RS 4n The memory address of the process. If not running with all privileges, \fB0\fR will be printed. .RE .sp .ne 2 .mk .na \fB\fBosz\fR\fR .ad .br .sp .6 .RS 4n The total size of the process in virtual memory, including all mapped files and devices, in pages. See \fBpagesize\fR(1). .RE .sp .ne 2 .mk .na \fB\fBwchan\fR\fR .ad .br .sp .6 .RS 4n The address of an event for which the process is sleeping (if \(mi, the process is running). Only visible when running with all privileges, otherwise it is \fB0\fR. To determine if a process is sleeping, check the \fBS\fR column. .RE .sp .ne 2 .mk .na \fB\fBetimes\fR\fR .ad .br .sp .6 .RS 4n The elapsed time since the process was started, in seconds. .RE .sp .ne 2 .mk .na \fB\fBtimes\fR\fR .ad .br .sp .6 .RS 4n The cumulative CPU time of the process, in seconds. .RE .sp .ne 2 .mk .na \fB\fBstime\fR\fR .ad .br .sp .6 .RS 4n The starting time or date of the process. If less than 24 hours ago, the time is printed as the hour, minute, and second. If at least 24 hours ago, the date is printed as month and day. If specified as \fB-o stime\fR, printed with no blanks. If enabled via the \fB-f\fR option, dates will have a space between the month and day. .RE .sp .ne 2 .mk .na \fB\fBdmodel\fR\fR .ad .br .sp .6 .RS 4n The data model of the process, \fB_LP64\fR or \fB_ILP32\fR. .RE .sp .ne 2 .mk .na \fB\fBrss\fR\fR .ad .br .sp .6 .RS 4n The resident set size of the process, in kilobytes. The \fBrss\fR value reported by \fBps\fR is an estimate provided by \fBproc\fR(5) that might underestimate the actual resident set size. Users who wish to get more accurate usage information for capacity planning should use \fBpmap\fR(1) \fB-x\fR instead. .RE .sp .ne 2 .mk .na \fB\fBrssprivate\fR\fR .ad .br .sp .6 .RS 4n The resident set size of the process, in kilobytes, of the private, non-shared mappings. .RE .sp .ne 2 .mk .na \fB\fBrssshared\fR\fR .ad .br .sp .6 .RS 4n The resident set size of the process, in kilobytes, of the non-private, shared mappings. The sum of \fBrssshared\fR and \fBrssprivate\fR equals \fBrss\fR. .RE .sp .ne 2 .mk .na \fB\fBpmem\fR\fR .ad .br .sp .6 .RS 4n The ratio of the process's resident set size to the physical memory on the machine, expressed as a percentage. .RE .sp .ne 2 .mk .na \fB\fBfname\fR\fR .ad .br .sp .6 .RS 4n The base name of the process's executable file. .RE .sp .ne 2 .mk .na \fB\fBctid\fR\fR .ad .br .sp .6 .RS 4n The contract ID of the process contract the process is a member of as a decimal integer. .RE .sp .ne 2 .mk .na \fB\fBlgrp\fR\fR .ad .br .sp .6 .RS 4n The home lgroup of the process. .RE .sp .ne 2 .mk .na \fB\fBenv\fR\fR .ad .br .sp .6 .RS 4n The initial environment of the process. .RE .sp .ne 2 .mk .na \fB\fBfmri\fR\fR .ad .br .sp .6 .RS 4n The SMF FMRI corresponding to the contract id. .RE .sp .ne 2 .mk .na \fB\fBlabel\fR\fR .ad .br .sp .6 .RS 4n If Solaris Trusted Extensions is in use, the label for the process, otherwise the clearance for the process. See \fBlabels\fR(7) and \fBclearance\fR(7) for more information. .RE .sp .LP Only \fBcomm\fR, \fBargs\fR, \fBlname\fR, \fBenv\fR, and \fBlabel\fR are allowed to contain blank characters; all others, including the Oracle Solaris implementation formats, are not. Columns in the output formats specified by options other than \fB-o\fR may contain blank characters. Use \fB-o\fR when parsing output to avoid this. .sp .LP The Oracle Solaris implementation also accepts the following aliases to the above specified format specifiers: .sp .TS tab( ) box; lw(2.75i) |lw(2.75i) lw(2.75i) |lw(2.75i) . Alias Format Specifier _ %cpu pcpu %mem pmem clearance label cls class cmd args command args cputime time cputimes times egid gid egroup group euser user flag f flags f lgroup lgrp ni nice pgrp pgid policy class rssize rss rsz rss sess sid session sid svgid sgid svuid suid tname tty tt tty ucmd comm ucomm comm .TE .sp .sp .LP The following table specifies the default header to be used in the POSIX locale corresponding to each format specifier defined by the POSIX standard. .sp .TS tab( ) box; lw(2.75i) |lw(2.75i) lw(2.75i) |lw(2.75i) . Format Specifier Default Header _ args COMMAND comm COMMAND etime ELAPSED group GROUP nice NI pcpu %CPU pgid PGID pid PID ppid PPID rgroup RGROUP ruser RUSER time TIME tty TT user USER vsz VSZ .TE .sp .sp .LP The following table lists the Oracle Solaris implementation format specifiers and the default header used with each. .sp .TS tab( ) box; lw(2.75i) |lw(2.75i) lw(2.75i) |lw(2.75i) . Format Specifier Default Header _ addr ADDR c C class CLS ctid CTID dmodel DMODEL env ENVIRONMENT etimes ELAPSED f F fmri FMRI fname COMMAND gid GID label LABEL lgrp LGRP lname LNAME lwp LWP nlwp NLWP opri PRI osz SZ pmem %MEM pri PRI project PROJECT projid PROJID psr PSR rgid RGID rss RSS ruid RUID s S sid SID sgid SGID sgroup SGROUP suid SUID suser SUSER stime STIME taskid TASKID times TIME uid UID wchan WCHAN zone ZONE zoneid ZONEID .TE .sp .sp .LP The default headers are not currently localized in the Oracle Solaris implementation, but may be in other implementations, including future updates to Oracle Solaris. The header strings shown here will always be used in the C or POSIX locales, regardless of any localization in other locales. .SS "Historical Output Formats" .sp .LP Prior to the addition of the \fB-o\fR option, the \fBps\fR command accepted a number of options to specify which columns to print. Those options are still supported, but can also be mapped to equivalent \fB-o\fR formats as follows. Column widths may differ from the listed formats. .sp .LP The historical options print slightly different time formats than the listed format operands. The historical format for \fBtime\fR only displays minutes and seconds in \fBhh:mm\fR format, while the \fBtime\fR operand will display days, hours, minutes, and seconds if necessary. For processes that are at least 24 hours old, the historical format for \fBstime\fR has a space between the month and day, while the \fBstime\fR operand prints an underscore (\fB_\fR) between the month and day. .sp .ne 2 .mk .na \fBdefault\fR .ad .br .sp .6 .RS 4n \fBpid,tty,time,fname=CMD\fR .sp If per-lwp display is enabled, the title of the \fBtime\fR column is changed to \fBLTIME\fR. .RE .sp .ne 2 .mk .na \fB\fB-f\fR\fR .ad .br .sp .6 .RS 4n Add \fBuser,ppid,c,opri,nice,stime\fR. Replace \fBfname=CMD\fR with \fBargs=CMD\fR. .RE .sp .ne 2 .mk .na \fB\fB-l\fR\fR .ad .br .sp .6 .RS 4n Add \fBf,s,uid,ppid,c,opri,nice,addr,osz,wchan\fR. .sp If output is to a tty and the \fBps\fR command is run without sufficient privileges to retrieve kernel addresses, omit \fBaddr\fR and \fBwchan\fR. .sp If both \fB-f\fR and \fB-l\fR are specified, omit \fBuid\fR and include \fBuser\fR. .RE .sp .ne 2 .mk .na \fB\fB-c\fR\fR .ad .br .sp .6 .RS 4n Add \fBclass,pri\fR. .sp Modify \fB-f\fR to remove \fBc\fR. .sp Modify \fB-l\fR to remove \fBc,opri,nice\fR. .RE .sp .ne 2 .mk .na \fB\fB-H\fR\fR .ad .br .sp .6 .RS 4n Add \fBlgrp\fR. .RE .sp .ne 2 .mk .na \fB\fB-j\fR\fR .ad .br .sp .6 .RS 4n Add \fBpgid,sid\fR .RE .sp .ne 2 .mk .na \fB\fB-L\fR\fR .ad .br .sp .6 .RS 4n Add \fBlwp,lname\fR and enable per-lwp display. If \fB-f\fR is also specified, also add \fBnwlp\fR. .RE .sp .ne 2 .mk .na \fB\fB-P\fR\fR .ad .br .sp .6 .RS 4n Add \fBpsr\fR. .RE .sp .ne 2 .mk .na \fB\fB-y\fR\fR .ad .br .sp .6 .RS 4n Modify \fB-l\fR to remove \fBf\fR and \fBaddr\fR, replace \fBosz\fR with \fBvsz\fR, and add \fBrss\fR. .RE .sp .ne 2 .mk .na \fB\fB-Z\fR\fR .ad .br .sp .6 .RS 4n Add \fBzone:8\fR. .RE .SH DISPLAY WIDTH .sp .LP By default, lines are limited to the \fIcolumns\fR setting. If any of the \fB--columns\fR, \fB--cols\fR, or \fB--width\fR options are used, the columns setting is the value from the last one of those options on the command line. If none of those options are provided, the value of the \fBCOLUMNS\fR environment variable is used for the columns setting. If neither of the options or environment variable are specified, then if the output is a tty, the terminal width is used for the columns setting, otherwise the value of \fBLINE_MAX\fR is used. .sp .LP When the \fB-w\fR option is specified exactly once, lines are limited to 132 characters of output. .sp .LP When the \fB-w\fR option is specified two or more times, lines are unlimited in length. Applications and scripts which pipe the output of \fBps\fR to another command should use care with this option, as some programs may be limited to handling only \fBLINE_MAX\fR characters per line. .SH EXAMPLES .LP \fBExample 1\fR Using \fBps\fR \fB-o\fR Option to specify fields .sp .LP The command: .sp .in +2 .nf example% \fBps -o user,pid,ppid=MOM -o args\fR .fi .in -2 .sp .sp .LP writes the following in the POSIX locale: .sp .in +2 .nf USER PID MOM COMMAND helene 34 12 ps -o uid,pid,ppid=MOM -o args .fi .in -2 .sp .LP \fBExample 2\fR Using \fBps\fR \fB-O\fR Option to add or modify fields .sp .LP The command: .sp .in +2 .nf example% \fBps -u $USER -O tty:10,pcpu\fR .fi .in -2 .sp .sp .LP writes the following in the POSIX locale: .sp .in +2 .nf PID TTY TIME %CPU CMD 8273 kz/term/1 0:00 0.0 ps 850 console 0:00 0.0 tcsh 7799 kz/term/1 0:00 0.0 tcsh .fi .in -2 .sp .LP \fBExample 3\fR Using \fBps\fR \fB-O\fR Option to suppress fields .sp .LP The command: .sp .in +2 .nf example% \fBps -u $USER -O -tty\fR .fi .in -2 .sp .sp .LP writes the following in the POSIX locale: .sp .in +2 .nf PID TIME CMD 8273 0:00 ps 850 0:00 tcsh 7799 0:00 tcsh .fi .in -2 .sp .LP \fBExample 4\fR Using \fBps\fR to display processes selected by \fBpgrep\fR .sp .LP The \fBpgrep\fR command allows more options for selecting processes than \fBps\fR, but is much more limited in the information it displays about each process. Combining them allows using the strengths of each command. .sp .LP This command displays processes whose names match a regular expression, instead of the simple string match provided by \fBps\fR \fB-C\fR. .sp .in +2 .nf example% \fBps -p `pgrep -d, 'gnome-.*-server'`\fR PID TT TIME CMD 1665 ? 0:03 gnome-shell-calendar-server 1989 ? 15:46 gnome-terminal-server .fi .in -2 .sp .SH ENVIRONMENT VARIABLES .sp .LP See \fBenviron\fR(7) man page for descriptions of the following environment variables that affect the execution of \fBps\fR: \fBLANG\fR, \fBLC_ALL\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, \fBLC_TIME\fR, \fBNLSPATH\fR, and \fBTZ\fR. .sp .ne 2 .mk .na \fB\fBCOLUMNS\fR\fR .ad .br .sp .6 .RS 4n Override the system-selected horizontal screen size, used to determine the number of text columns to display. See the description of the \fB-w\fR option for details. .RE .sp .ne 2 .mk .na \fB\fBLINES\fR\fR .ad .br .sp .6 .RS 4n Override the system-selected vertical size, used to determine the number of text rows per page of output. See the description of the \fB--headers\fR option for details. .RE .SH EXIT STATUS .sp .LP The following exit values are returned: .sp .ne 2 .mk .na \fB\fB0\fR\fR .ad .RS 6n .rt Successful completion .RE .sp .ne 2 .mk .na \fB\fB>0\fR\fR .ad .RS 6n .rt An error occurred .RE .SH FILES .sp .ne 2 .mk .na \fB\fB/dev/pts/*\fR\fR .ad .br .sp .6 .RS 4n list of terminal devices .RE .sp .ne 2 .mk .na \fB\fB/dev/term/*\fR\fR .ad .br .sp .6 .RS 4n terminal ("tty") names searcher files .RE .sp .ne 2 .mk .na \fB\fB/proc/*\fR\fR .ad .br .sp .6 .RS 4n process control files .RE .SH ATTRIBUTES .sp .LP See \fBattributes\fR(7) for descriptions of the following attributes: .SS "\fB/usr/bin/ps\fR" .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability \fBsystem/core-os\fR _ CSI Enabled (see NOTES) _ Interface Stability Committed _ Standard POSIX.1-2008, SUSv4, XPG7 .TE .sp .SS "\fB/usr/ucb/ps\fR" .sp .TS tab( ) box; cw(2.75i) |cw(2.75i) lw(2.75i) |lw(2.75i) . ATTRIBUTE TYPE ATTRIBUTE VALUE _ Availability \fBlegacy/compatibility/ucb\fR _ Interface Stability Obsolete _ Standard None .TE .sp .SH SEE ALSO .sp .LP \fBkill\fR(1), \fBlgrpinfo\fR(1), \fBnice\fR(1), \fBpagesize\fR(1), \fBpgrep\fR(1), \fBpmap\fR(1), \fBpriocntl\fR(1), \fBproc\fR(1), \fBptree\fR(1), \fBwho\fR(1), \fBproc\fR(5), \fBttysrch\fR(5), \fBattributes\fR(7), \fBenviron\fR(7), \fBresource-controls\fR(7), \fBscale\fR(7), \fBstandards\fR(7), \fBzones\fR(7), \fBgetty\fR(8), \fBprstat\fR(8) .SH NOTES .sp .LP Things can change while \fBps\fR is running. The snapshot it gives is true only for a split-second, and it might not be accurate by the time you see it. Some data printed for defunct processes is irrelevant. .sp .LP If no options to select processes are specified, \fBps\fR reports all processes associated with the controlling terminal. If there is no controlling terminal, there is no report other than the header. .sp .LP \fBps\fR \fB-f\fR or \fBps\fR \fB-o\fR \fBstime\fR might not report the actual start of a tty login session, but rather an earlier time, when a \fBgetty\fR was last respawned on the \fBtty\fR line. .sp .LP On prior releases the \fBADDR\fR and \fBWCHAN\fR fields might have contained the kernel memory address of the process and/or event it was waiting on. These fields are now always \fB0\fR unless requested by a process running with all privileges. The values can still be obtained using the \fB::ps and ::thread dcmds\fR within \fBmdb\fR. .sp .LP \fBps\fR is \fBCSI\fR-enabled except for login names (usernames). .sp .LP When run in the global zone, user and group name resolutions are done using the global zone's name services. Processes running in a non-global zone that are displayed by \fBps\fR, have user and group names that match with those found in the global zone's name services, but they may differ from the name services configured in non-global zones. .sp .LP While use of the \fB-o\fR option can allow for reliable parsing of \fBps\fR output by scripts, programs can have more efficient access to the information reported via \fBproc\fR(5) interfaces. The following table shows which procfs interfaces are used to provide each \fBps\fR output field. .sp .TS tab( ) box; lw(1.38i) |lw(0.69i) |lw(3.44i) lw(1.38i) |lw(0.69i) |lw(3.44i) . PS FIELD PROC FILE PROC FIELD _ \fBaddr\fR \fBpsinfo\fR \fBpr_addr\fR or \fBpr_lwp.pr_addr\fR (\fB-L\fR) _ \fBargs\fR \fBcmdline\fR \ _ \fBc\fR \fBpsinfo\fR \fBpr_lwp.pr_cpu\fR _ \fBclass\fR \fBpsinfo\fR \fBpr_lwp.pr_clname\fR _ \fBcomm\fR \fBcmdline\fR \ _ \fBctid\fR \fBpsinfo\fR \fBpr_contract\fR _ \fBdmodel\fR \fBpsinfo\fR \fBpr_dmodel\fR _ \fBenv\fR \fBenviron\fR \ _ \fBetime\fR, \fBetimes\fR \fBpsinfo\fR \fBpr_start\fR or \fBpr_lwp.pr_start\fR (\fB-L\fR) _ \fBf\fR \fBpsinfo\fR \fBpr_flag\fR _ \fBfmri\fR \fBpsinfo\fR \fBpr_contract\fR _ \fBfname\fR \fBpsinfo\fR \fBpr_fname\fR _ \fBgid\fR, \fBgroup\fR \fBpsinfo\fR \fBpr_egid\fR _ \fBlabel\fR \fBpsinfo\fR \fBpr_zoneid\fR (Trusted Extensions) _ \fBlabel\fR \fBclearance\fR (without Trusted Extensions) _ \fBlgrp\fR \fBpsinfo\fR \fBpr_lwp.pr_lgrp\fR _ \fBlname\fR \fBpsinfo\fR \fBpsinfo->pr_lwp.pr_name\fR _ \fBlwp\fR \fBpsinfo\fR \fBpr_lwp.pr_lwpid\fR _ \fBnice\fR \fBpsinfo\fR \fBpr_lwp.pr_nice\fR or \fBpr_lwp.pr_clname\fR _ \fBnlwp\fR \fBpsinfo\fR \fBpr_nlwp\fR + \fBpr_nzomb\fR _ \fBopri\fR \fBpsinfo\fR \fBpr_lwp.pr_oldpri\fR _ \fBosz\fR \fBpsinfo\fR \fBpr_size\fR _ \fBpcpu\fR \fBpsinfo\fR \fBpr_pctcpu\fR or \fBpr_lwp.pr_pctcpu\fR (\fB-L\fR) _ \fBpgid\fR \fBpsinfo\fR \fBpr_pgid\fR _ \fBpid\fR \fBpsinfo\fR \fBpr_pid\fR _ \fBpmem\fR \fBpsinfo\fR \fBpr_pctmem\fR _ \fBppid\fR \fBpsinfo\fR \fBpr_ppid\fR _ \fBpri\fR \fBpsinfo\fR \fBpr_lwp.pr_pri\fR _ \fBproject\fR, \fBprojid\fR \fBpsinfo\fR \fBpr_projid\fR _ \fBpset\fR \fBpsinfo\fR \fBpr_lwp.pr_bindpset\fR _ \fBpsr\fR \fBpsinfo\fR \fBpr_lwp.pr_bindpro\fR _ \fBrgid\fR, \fBrgroup\fR \fBpsinfo\fR \fBpr_gid\fR _ \fBrss\fR \fBpsinfo\fR \fBpr_rssize\fR _ \fBrssprivate\fR \fBpsinfo\fR \fBpr_rssizepriv\fR _ \fBrssshared\fR \fBpsinfo\fR \fBpr_rssize\fR - \fBpr_rssizepriv\fR _ \fBruid\fR, \fBruser\fR \fBpsinfo\fR \fBpr_uid\fR _ \fBs\fR \fBpsinfo\fR \fBpr_lwp.pr_sname\fR _ \fBsgid\fR, \fBsgroup\fR \fBcred\fR \fBpr_sgid\fR _ \fBsid\fR \fBpsinfo\fR \fBpr_sid\fR _ \fBstime\fR \fBpsinfo\fR \fBpr_start\fR or \fBpr_lwp.pr_start\fR (\fB-L\fR) _ \fBsuid\fR, \fBsuser\fR \fBcred\fR \fBpr_suid\fR _ \fBtaskid\fR \fBpsinfo\fR \fBpr_taskid\fR _ \fBtime\fR, \fBtimes\fR \fBpsinfo\fR \fBpr_time\fR or \fBpr_lwp.pr_time\fR (\fB-L\fR) _ \fBtty\fR \fBpsinfo\fR \fBpr_ttydev\fR _ \fBuid\fR \fBpsinfo\fR \fBpr_uid\fR _ \fBuser\fR \fBpsinfo\fR \fBpr_euid\fR _ \fBvsz\fR \fBpsinfo\fR \fBpr_size\fR _ \fBwchan\fR \fBpsinfo\fR \fBpr_lwp.pr_wchan\fR _ \fBzone\fR, \fBzoneid\fR \fBpsinfo\fR \fBpr_zoneid\fR .TE .sp .SH HISTORY .sp .LP In Solaris 2.0 through 10, a separate \fB/usr/ucb/ps\fR command was provided to support the UCB options. In Solaris 11.0, support for the UCB options was added to \fB/usr/bin/ps\fR, and \fB/usr/ucb/ps\fR was replaced with a link to \fB/usr/bin/ps\fR. .sp .LP Command name and arguments output was limited to 80 characters until the introduction of \fB/proc/\fIpid\fR/cmdline\fR in Oracle Solaris 11.3.5. .sp .LP Support for the following options was first added in the listed Oracle Solaris release: .sp .TS tab( ) box; cw(4.71i) |cw(0.79i) lw(4.71i) |lw(0.79i) . OPTION RELEASE _ \fB--scale\fR 11.4.30 _ T{ \fB-C\fR, \fB-w\fR, \fB--cols\fR, \fB--columns\fR, \fB--format\fR, \fB--Group\fR, \fB--group\fR, \fB--headers\fR, \fB--human-readable\fR, \fB--lgroup\fR, \fB--lines\fR, \fB--no-headers\fR, \fB--no-heading\fR, \fB--pgid\fR, \fB--pid\fR, \fB--ppid\fR, \fB--rows\fR, \fB--sid\fR, \fB--tty\fR, \fB--User\fR, \fB--user\fR, \fB--width\fR, Heuristics for \fB-g\fR T} 11.4.27 _ \fB-W\fR 11.4.12 _ \fB-O\fR 11.4.0 _ \fB-Z\fR, \fB-z\fR 10 3/05 _ \fB-L\fR, \fB-P\fR, \fB-y\fR 2.6 _ \fB-A\fR, \fB-G\fR, \fB-U\fR, \fB-o\fR 2.5 _ T{ \fB-a\fR, \fB-c\fR, \fB-d\fR, \fB-e\fR, \fB-f\fR, \fB-g\fR, \fB-j\fR, \fB-l\fR, \fB-n\fR, \fB-p\fR, \fB-r\fR, \fB-s\fR, \fB-t\fR, \fB-u\fR T} 2.0 .TE .sp .sp .LP Support for the following format specifiers was first added in the listed Oracle Solaris release: .sp .TS tab( ) box; cw(4.71i) |cw(0.79i) lw(4.71i) |lw(0.79i) . NAME RELEASE _ T{ \fB%cpu\fR, \fB%mem\fR, \fBclearance\fR, \fBcls\fR, \fBcmd\fR, \fBcommand\fR, \fBcputime\fR, \fBcputimes\fR, \fBegid\fR, \fBegroup\fR, \fBetimes\fR, \fBeuser\fR, \fBflag\fR, \fBflags\fR, \fBlabel\fR, \fBni\fR, \fBpgrp\fR, \fBpolicy\fR, \fBrssize\fR, \fBrsz\fR, \fBsess\fR, \fBsession\fR, \fBsgid\fR, \fBsgroup\fR, \fBsuid\fR, \fBsuser\fR, \fBsvgid\fR, \fBsvuid\fR, \fBtimes\fR, \fBtname\fR, \fBtt\fR, \fBucmd\fR, \fBucomm\fR T} 11.4.27 _ \fBfmri\fR 11.4.12 _ \fBrssprivate\fR, \fBrssshared\fR 11.3.24 _ \fBenv\fR 11.3.5 _ \fBlname\fR 11.3.0 _ \fBlgrp\fR 11.0.0 _ \fBctid\fR, \fBzone\fR, \fBzoneid\fR 10 3/05 _ \fBpset\fR, \fBproject\fR, \fBprojid\fR, \fBtaskid\fR 9 5/02 _ \fBlwp\fR, \fBnwlp\fR, \fBpsr\fR 2.6 _ All others 2.5 .TE .sp