📄 ps.1
字号:
The\ \fBn\fR\ option can be usedto force the decimal representation.(alias\ \fBuname\fR,\ \fBuser\fR).T}f F T{flags associated with the process, see the \fBPROCESS FLAGS\fR section.(alias\ \fBflag\fR,\ \fBflags\fR).T}fgid FGID T{filesystem access group\ ID. (alias\ \fBfsgid\fR).T}fgroup FGROUP T{filesystem access group\ ID.This will be the textual user\ ID, if\ it can be obtainedand the field width permits,or\ a\ decimal representation otherwise.(alias\ \fBfsgroup\fR).T}flag F T{see\ \fBf\fR. (alias\ \fBf\fR,\ \fBflags\fR).T}flags F T{see\ \fBf\fR. (alias\ \fBf\fR,\ \fBflag\fR).T}fname COMMAND T{first 8 bytes of the base name of the process's executable file.The output in this column may contain spaces.T}fuid FUID T{filesystem access user\ ID. (alias\ \fBfsuid\fR).T}fuser FUSER T{filesystem access user\ ID. This will be the textual user\ ID,if\ it can be obtained and the field width permits,or\ a\ decimal representation otherwise.T}gid GID T{see\ \fBegid\fR. (alias\ \fBegid\fR).T}group GROUP T{see\ \fBegroup\fR. (alias\ \fBegroup\fR).T}ignored IGNORED T{mask of the ignored signals, see \fIsignal\fR(7). According to thewidth of the field, a\ 32\-bit or 64\-bit mask in hexadecimal formatis displayed. (alias \fBsig_ignore\fR, \fBsigignore\fR).T}label LABEL T{security label, most commonly used for SE\ Linux context data.This is for the \fIMandatory Access Control\fR ("MAC") found onhigh\-security systems.T}lstart STARTED T{time the command started.T}lwp LWP T{lwp (light weight process, or thread) ID of the lwp being reported.(alias\ \fBspid\fR,\ \fBtid\fR).T}ni NI T{nice value. This ranges from 19 (nicest) to \-20 (not\ nice to\ others),see\ \fInice\fR(1). (alias\ \fBnice\fR).T}nice NI T{see\ \fBni\fR. (alias\ \fBni\fR).T}nlwp NLWP T{number of lwps (threads) in the process. (alias\ \fBthcount\fR).T}nwchan WCHAN T{address of the kernel function where the process is sleeping(use \fBwchan\fR if you want the kernel function name).Running tasks will display a dash ('\-') in this column.T}pcpu %CPU T{see\ \fB%cpu\fR. (alias\ \fB%cpu\fR).T}pending PENDING T{mask of the pending signals. See\ \fIsignal\fR(7). Signals pending onthe process are distinct from signals pending on individual threads.Use the \fBm\fR option or the \fB\-m\fR option to see both.According to the width of the field, a\ 32\-bit or 64\-bit mask inhexadecimal format is displayed. (alias\ \fBsig\fR).T}pgid PGID T{process group\ ID or, equivalently, the process\ ID of theprocess group leader. (alias\ \fBpgrp\fR).T}pgrp PGRP T{see\ \fBpgid\fR. (alias\ \fBpgid\fR).T}pid PID T{process\ ID number of the process.T}pmem %MEM T{see\ \fB%mem\fR. (alias\ \fB%mem\fR).T}policy POL T{scheduling class of the process. (alias\ \fBclass\fR,\ \fBcls\fR).Possible values are:.br\- not reported.brTS SCHED_OTHER.brFF SCHED_FIFO.brRR SCHED_RR.br? unknown valueT}ppid PPID T{parent process ID.T}psr PSR T{processor that process is currently assigned to.T}rgid RGID T{real group ID.T}rgroup RGROUP T{real group name. This will be the textual group\ ID, if\ it can beobtained and the field width permits,or\ a\ decimal representation otherwise.T}rss RSS T{resident set size, the non\-swapped physical memory thata task has used (in\ kiloBytes).(alias\ \fBrssize\fR,\ \fBrsz\fR).T}rssize RSS T{see\ \fBrss\fR. (alias\ \fBrss\fR,\ \fBrsz\fR).T}rsz RSZ T{see\ \fBrss\fR. (alias\ \fBrss\fR,\ \fBrssize\fR).T}rtprio RTPRIO T{realtime priority.T}ruid RUID T{real user\ ID.T}ruser RUSER T{real user\ ID. This will be the textual user\ ID,if\ it can be obtained and the field width permits,or\ a\ decimal representation otherwise.T}s S T{minimal state display (one\ character).See\ section \fBPROCESS STATE CODES\fR for the different values.See\ also \fBstat\fR if you want additionalinformation displayed. (alias\ \fBstate\fR).T}sched SCH T{scheduling policy of the process. The policies sched_other, sched_fifo,and sched_rr are respectively displayed as 0,\ 1,\ and\ 2.T}sess SESS T{session\ ID or, equivalently, the process\ ID of the session\ leader.(alias\ \fBsession\fR,\ \fBsid\fR).T}sgi_p P T{processor that the process is currently executing on.Displays "*" if the process is not currently running or runnable.T}sgid SGID T{saved group\ ID.(alias\ \fBsvgid\fR).T}sgroup SGROUP T{saved group\ name. This will be the textual group\ ID,if\ it can be obtained and the field width permits,or\ a\ decimal representation otherwise.T}sid SID T{see\ \fBsess\fR. (alias\ \fBsess\fR,\ \fBsession\fR).T}sig PENDING T{see\ \fBpending\fR. (alias\ \fBpending\fR,\ \fBsig_pend\fR).T}sigcatch CAUGHT T{see\ \fBcaught\fR. (alias\ \fBcaught\fR,\ \fBsig_catch\fR).T}sigignore IGNORED T{see\ \fBignored\fR. (alias\ \fBignored\fR,\ \fBsig_ignore\fR).T}sigmask BLOCKED T{see\ \fBblocked\fR. (alias\ \fBblocked\fR,\ \fBsig_block\fR).T}size SZ T{approximate amount of swap space that would be requiredif the process were to dirty all writable pages and thenbe swapped out.This number is very\ rough!T}spid SPID T{see \fBlwp\fR. (alias\ \fBlwp\fR,\ \fBtid\fR).T}stackp STACKP T{address of the bottom (start) of stack for the process.T}start STARTED T{time the command started.If the process was started less than 24 hours ago,the output format is "HH:MM:SS",else it is "\ \ mmm\ dd"(where mmm is a three\-letter month\ name).T}start_time START T{starting time or date of the process.Only the year will be displayed if the process was notstarted the same year \fBps\fR was invoked,or\ "mmmdd" if\ it was not started the same day,or\ "HH:MM" otherwise.T}stat STAT T{multi\-character process state.See\ section \fBPROCESS STATE CODES\fRfor the different values meaning.See also \fBs\fR and \fBstate\fR if you just wantthe first character displayed.T}state S T{see\ \fBs\fR. (alias\ \fBs\fR).T}suid SUID T{saved user\ ID. (alias\ \fBsvuid\fR).T}suser SUSER T{saved user name. This will be the textual user\ ID,if\ it can be obtained and the field width permits,or\ a\ decimal representation otherwise.(alias\ \fBsvuser\fR).T}svgid SVGID T{see\ \fBsgid\fR. (alias\ \fBsgid\fR).T}svuid SVUID T{see\ \fBsuid\fR. (alias\ \fBsuid\fR).T}sz SZ T{size in physical pages of the core image of the process.This includes text, data, and stack space.Device mappings are currently excluded; this is subject to change.See \fBvsz\fR and \fBrss\fR.T}thcount THCNT T{see \fBnlwp\fR. (alias\ \fBnlwp\fR).number of kernel threads owned by the process.T}tid TID T{see\ \fBlwp\fR. (alias\ \fBlwp\fR).T}time TIME T{cumulative CPU\ time, "[dd\-]hh:mm:ss" format. (alias\ \fBcputime\fR).T}tname TTY T{controlling tty (terminal).(alias\ \fBtt\fR,\ \fBtty\fR).T}tpgid TPGID T{ID of the foreground process group on the tty (terminal) thatthe process is connected to, or \-1 if the process is not connectedto a tty.T}tt TT T{controlling tty (terminal). (alias\ \fBtname\fR,\ \fBtty\fR).T}tty TT T{controlling tty (terminal). (alias\ \fBtname\fR,\ \fBtt\fR).T}ucmd CMD T{see \fBcomm\fR. (alias\ \fBcomm\fR,\ \fBucomm\fR).T}ucomm COMMAND T{see \fBcomm\fR. (alias\ \fBcomm\fR,\ \fBucmd\fR).T}uid UID T{see \fBeuid\fR. (alias\ \fBeuid\fR).T}uname USER T{see \fBeuser\fR. (alias\ \fBeuser\fR,\ \fBuser\fR).T}user USER T{see \fBeuser\fR. (alias\ \fBeuser\fR,\ \fBuname\fR).T}vsize VSZ T{see \fBvsz\fR. (alias\ \fBvsz\fR).T}vsz VSZ T{virtual memory size of the process in KiB (1024\-byte\ units).Device mappings are currently excluded; this is subject to change.(alias\ \fBvsize\fR).T}wchan WCHAN T{name of the kernel function in which the process is sleeping,a\ "\-"\ if the process is running,or a "*"\ if the process is multi\-threaded and\fBps\fR is not displaying threads.T}.TE.\" #######################################################################.PP.PP.SH "ENVIRONMENT VARIABLES"The following environment variables could affect \fBps\fR:.TP 3.B COLUMNSOverride default display width..TP.B LINESOverride default display height..TP.B PS_PERSONALITYSet to one of posix, old, linux, bsd, sun, digital...(see\ section\ \fBPERSONALITY\fR\ below)..TP.B CMD_ENVSet to one of posix, old, linux, bsd, sun, digital...(see\ section\ \fBPERSONALITY\fR\ below)..TP.B I_WANT_A_BROKEN_PSForce obsolete command line interpretation..TP.B LC_TIMEDate format..TP.B PS_COLORSNot currently supported..TP.B PS_FORMATDefault output format override. You may set this to a formatstring of the type used for the \fB\-o\fR option.The \fBDefSysV\fR and \fBDefBSD\fR values are particularly useful..TP.B PS_SYSMAPDefault namelist (System.map) location..TP.B PS_SYSTEM_MAPDefault namelist (System.map) location..TP.B POSIXLY_CORRECTDon't find excuses to ignore bad "features"..TP.B POSIX2When set to "on", acts as \fBPOSIXLY_CORRECT\fR..TP.B UNIX95Don't find excuses to ignore bad "features"..TP.B _XPGCancel \fBCMD_ENV\fI=irix\fR non\-standard behavior..PPIn general, it\ is a bad idea to set these variables.The one exception is \fBCMD_ENV\fR or \fBPS_PERSONALITY\fR,which could be set to Linux for normal systems.Without that setting,\fBps\fR follows the useless and bad parts of the Unix98 standard..PP.PP.SH "PERSONALITY".TSl l.390 like the S/390 OpenEdition \fBps\fRaix like AIX \fBps\fRbsd like FreeBSD \fBps\fR (totally\ non\-standard)compaq like Digital Unix \fBps\fRdebian like the old Debian \fBps\fRdigital like Tru64 (was Digital\ Unix, was OSF/1) \fBps\fRgnu like the old Debian \fBps\fRhp like HP\-UX \fBps\fRhpux like HP\-UX \fBps\fRirix like Irix \fBps\fRlinux ***** RECOMMENDED *****old like the original Linux \fBps\fR (totally\ non\-standard)os390 like OS/390 Open Edition \fBps\fRposix standards390 like OS/390 Open Edition \fBps\fRsco like SCO \fBps\fRsgi like Irix \fBps\fRsolaris2 like Solaris 2+ (SunOS 5) \fBps\fRsunos4 like SunOS 4 (Solaris 1) \fBps\fR (totally\ non\-standard)svr4 standardsysv standardtru64 like Tru64 (was Digital\ Unix, was OSF/1) \fBps\fRunix standardunix95 standardunix98 standard.TE.PP.PP.SH "SEE ALSO"\fItop\fR(1), \fIpgrep\fR(1), \fIpstree\fR(1), \fIproc\fR(5)..PP.PP.SH STANDARDSThis \fBps\fR conforms to:.PP.PD 0.IP 1 4Version 2 of the Single Unix Specification.IP 2 4The Open Group Technical Standard Base Specifications, Issue\ 6.IP 3 4IEEE Std 1003.1, 2004\ Edition.IP 4 4X/Open System Interfaces Extension [UP\ XSI].IP 5 4ISO/IEC 9945:2003.PD.PP.SH AUTHOR\fBps\fR was originally written by Branko Lankester <lankeste@fwi.uva.nl>. MichaelK. Johnson <johnsonm@redhat.com> re\-wrote it significantly to use the procfilesystem, changing a few things in the process. Michael Shields<mjshield@nyx.cs.du.edu> added the pid\-list feature. Charles Blake<cblake@bbn.com> added multi\-level sorting, the dirent\-style library, thedevice name\-to\-number mmaped database, the approximate binary searchdirectly on System.map, and many code and documentation cleanups. DavidMossberger\-Tang wrote the generic BFD support for psupdate. Albert Cahalan<albert@users.sf.net> rewrote ps for full Unix98 and BSD support, along withsome ugly hacks for obsolete and foreign syntax.Please send bug reports to <procps\-feedback@lists.sf.net>.No\ subscription is required or suggested.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -