ps
以下是我在Solaris中的命令输出示例
myuser 26856 0.0 0.1 1716368 118576 ? S Feb 18 2:17 /web/bea/platform1221/jdk1.8.0_221/bin/java -Djava.security.manager -Djava.security.policy=/web/bea/platform1221/wlserver/common/derby/derbyServer.policy -Dderby.system.home=/web/bea_apps/domains/common/db -classpath /web/bea/platform1221/wlserver/common/derby/lib/derby.jar:/web/bea/platform1221/wlserver/common/derby/lib/derbynet.jar:/web/bea/platform1221/wlserver/common/derby/lib/derbytools.jar:/web/bea/platform1221/wlserver/common/derby/lib/derbyoptionaltools.jar:/web/bea/platform1221/wlserver/common/derby/lib/derbyclient.jar org.apache.derby.drda.NetworkServerControl start
myuser 934 0.0 0.0 11112 9064 ? S Jan 28 0:10 /web/bea_apps/apache/2.4.37/httpd-prod.viewlogs/bin/httpd -k start
root 1621 0.0 0.0 0 0 ? S Jan 24 0:00 zsched
myuser 2140 0.0 0.0 14368 10152 ? S Feb 07 0:00 /bin/sh /web/bea_apps/domains/bin/startWebLogic.sh
root 2369 0.0 0.0 15624 11168 ? S 21:15:17 0:00 /usr/share/centrifydc/sbin/sshd -R
myuser 2372 0.0 0.0 6016 4752 pts/24 S 21:15:17 0:00 -ksh
我尝试过-o
,但它不打印参数
我希望在实际命令之前丢弃以下内容后对剩下的内容进行排序。
在对其余进程进行排序之前,丢弃每个进程的以下内容
root 1621 0.0 0.0 0 0 ? S Jan 24 0:00
我上线了 :$ uname -a SunOS myhost 5.11 11.4.28.82.3 sun4v sparc sun4v
这是Solarisps
手册页:https://www.unix.com/man-page/OpenSolaris/1/ps/
请建议。