113 lines · 1.7 KB · Text
RawDownload
.TH PS 1.SH NAMEps, psu \- process status.SH SYNOPSIS.B ps[.B -apr].PP.B psu[.B -apr][.I user].SH DESCRIPTION.I Psprints information about processes..I Psuprints only information about processes started by.I user(default.BR $user )..PPFor each process reported,the user,process id,user time,system time,size,state,and command name are printed.State is one of the following:.TP \w'\fLno\ \fIresource\ \ \ 'u.B MoribundProcess has exited and is about to have itsresources reclaimed..TP.B Readyon the queue of processes ready to be run..TP.B Schedingabout to be run..TP.B Runningrunning..TP.B Queueingwaiting on a queue for a resource..TP.B Wakemewaiting for I/O or some other kernel event to wake it up..TP.B Brokendead of unnatural causes; lingeringso that it can be examined..TP.B Stoppedstopped..TP.B Stopwaitwaiting for another process to stop..TP.B Faultservicing a page fault..TP.B Idlewaiting for something to do (kernel processes only)..TP.B Newbeing created..TP.B Pageoutpaging out some other process..TP.I Syscallperforming the named system call..TP.BI no " resourcewaiting for more of a critical.IR resource ..PD.PPThe.B -rflag causes.I psto print, before the user time, the elapsed real time for the process..PPThe.B -pflag causes.I psto print, after the system time, the baseline and current priorities of each process..PPThe.B -aflag causes.I psto print the arguments for the process.  Newlines in arguments will be translated to spaces for display..SH FILES.B /proc/*/status.SH SOURCE.B /sys/src/cmd/ps.c.br.B /rc/bin/psu.SH "SEE ALSO".IR acid (1),.IR db (1),.IR kill (1), .IR ns (1),.IR proc (3)