3-28 Sun Blade 1500 Service, Diagnostics, and Troubleshooting Manual • December 2004
3.3.6.2 Examples
The following examples show output for the ps command and its options.
Note – When using sort with the -r option, the column headings are printed at the point
where the value in the first column is equal to zero.
# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 0 0 0 10:06:30 ? 0:18 sched
root 1 0 0 10:06:32 ? 0:00 /etc/init -
root 2 0 0 10:06:32 ? 0:00 pageout
root 3 0 0 10:06:32 ? 0:00 fsflush
root 100311 1 0 10:06:50 ? 0:00 /usr/lib/saf/sac -t 300
. . .
# ps -eo pcpu,pid,comm|sort -rn
1.4 100317 /usr/openwin/bin/Xsun
0.9 100460 dtwm
0.1 100677 ps
0.1 100600 ksh
0.1 100591 /usr/dt/bin/dtterm
0.1 100462 /usr/dt/bin/sdtperfmeter
0.1 100333 mibiisa
%CPU PID COMMAND
0.0 100652 /bin/csh
. . .
# ps -eo pmem,pid,comm|sort -rn
14.2 100317 /usr/openwin/bin/Xsun
4.4 100524 /net/dickens/fmsgml60/bin/sunxm.s5.sparc/makersgml
1.8 100460 dtwm
1.1 100591 /usr/dt/bin/dtterm
1.0 100650 /usr/dt/bin/dtterm
1.0 100494 /usr/dt/bin/dtterm
1.0 100462 /usr/dt/bin/sdtperfmeter
1.0 100453 /usr/dt/bin/dtsession
0.8 100452 /usr/dt/bin/ttsession
. . .