这个目录下的ps可以带这几个参数的.
回复 9# rabin.wang
本帖最后由 door10000 于 2013-11-28 23:37 编辑
-bash-4.1$ uname -an
SunOS solaris11 5.11 11.1 i86pc i386 i86pc
我这真没这问题。ps-bash-4.1$ ps -ef
UID PIDPPID C STIME TTY TIME CMD
root 0 0 0 23:34:03 ? 0:01 sched
root 5 0 0 23:34:01 ? 0:01 zpool-rpool
root 6 0 0 23:34:06 ? 0:00 kmem_task
root 1 0 0 23:34:06 ? 0:00 /usr/sbin/init
root 2 0 0 23:34:06 ? 0:00 pageout
root 3 0 0 23:34:06 ? 0:00 fsflush
root 7 0 0 23:34:06 ? 0:00 intrd
root 8 0 0 23:34:06 ? 0:00 vmtasks
root 115 1 0 23:34:31 ? 0:00 /usr/lib/pfexecd
root 11 1 0 23:34:08 ? 0:06 /lib/svc/bin/svc.startd
root 13 1 0 23:34:08 ? 0:19 /lib/svc/bin/svc.configd
root 776 1 0 23:34:57 ? 0:00 /usr/sbin/console-kit-daemon
root 848 781 0 23:35:01 ? 0:00 /usr/lib/hal/hald-addon-cpufreq
netcfg 40 1 0 23:34:18 ? 0:00 /lib/inet/netcfgd
gdm13711346 1 23:35:42 ? 0:00 gnome-power-manager
dladm 58 1 0 23:34:22 ? 0:00 /usr/sbin/dlmgmtd
daemon 82 1 0 23:34:26 ? 0:00 /lib/crypto/kcfd
root 780 1 0 23:34:58 ? 0:00 /usr/lib/hal/hald --daemon=yes
netadm 92 1 0 23:34:27 ? 0:00 /lib/inet/ipmgmtd
root 104 1 0 23:34:28 ? 0:00 /lib/inet/in.mpathd
netadm 553 1 0 23:34:44 ? 0:00 /lib/inet/nwamd
root 863 1 0 23:35:03 ? 0:00 /usr/lib/rmvolmgr -s
root 932 1 0 23:35:13 vt/1 0:00 /usr/lib/vtdaemon -c 16
gdm1359 1 1 23:35:34 ? 0:00 /usr/lib/gconfd-2
root 905 1 0 23:35:12 ? 0:00 /usr/sbin/auditd
root 850 1 0 23:35:01 ? 0:00 /usr/lib/ssh/sshd
root 874 1 0 23:35:08 ? 0:00 /sbin/dhcpagent
root 936 11 0 23:35:13 vt/3 0:00 /usr/sbin/ttymon -g -d /dev/vt/3 -l console -m ldterm,ttcompat -h -p solaris11
root 781 780 0 23:34:58 ? 0:00 hald-runner
root 869 1 0 23:35:05 ? 0:00 /usr/lib/devchassis/devchassisd
root 763 1 0 23:34:55 ? 0:00 /usr/sbin/cron
root 811 1 0 23:35:00 ? 0:00 /usr/lib/inet/inetd start
root 814 812 0 23:35:00 ? 0:00 /usr/lib/autofs/automountd
root 812 1 0 23:35:00 ? 0:00 /usr/lib/autofs/automountd
root 698 1 0 23:34:50 ? 0:00 /usr/sbin/nscd
root 216 1 0 23:34:34 ? 0:00 /usr/lib/rad/rad -sp
root1159 850 0 23:35:21 ? 0:00 /usr/lib/ssh/sshd
root 160 1 0 23:34:33 ? 0:00 /usr/lib/utmpd
root 877 1 0 23:35:09 ? 0:00 /usr/lib/inet/in.ndpd
root 852 781 0 23:35:01 ? 0:00 /usr/lib/hal/hald-addon-acpi
root 329 1 0 23:34:37 ? 0:00 /usr/lib/devfsadm/devfsadmd
root 887 1 0 23:35:12 ? 0:00 /usr/sbin/syslogd
root11141099 1 23:35:18 vt/7 0:00 /usr/bin/Xorg :0 -nolisten tcp -br -novtswitch -auth /tmp/gdm-auth-cookies-g6ay
root 580 1 0 23:34:47 ? 0:00 /usr/lib/picl/picld
root 906 11 0 23:35:12 console 0:00 /usr/sbin/ttymon -g -d /dev/console -l console -T sun-color -m ldterm,ttcompat
root 170 1 0 23:34:33 ? 0:00 /usr/sbin/vbiosd
root 555 1 0 23:34:44 ? 0:00 /usr/lib/rcm/rcm_daemon
root 186 1 0 23:34:33 ? 0:00 /usr/lib/zones/zonestatd
root 720 1 0 23:34:51 ? 0:00 /lib/svc/method/iscsid
root 191 1 0 23:34:34 ? 0:00 /usr/lib/sysevent/syseventd
root 851 1 0 23:35:01 ? 0:01 /usr/lib/fm/fmd/fmd
smmsp1136 1 0 23:35:19 ? 0:00 /usr/lib/sendmail -Ac -q15m
gdm13671346 0 23:35:39 ? 0:00 metacity
root 957 11 0 23:35:13 vt/2 0:00 /usr/sbin/ttymon -g -d /dev/vt/2 -l console -m ldterm,ttcompat -h -p solaris11
daemon 800 1 0 23:34:59 ? 0:00 /usr/sbin/rpcbind
root 294 1 0 23:34:36 ? 0:00 /usr/lib/dbus-daemon --system
gdm1366 1 0 23:35:38 ? 0:00 /usr/lib/gvfsd
gdm1342 1 0 23:35:29 ? 0:00 /usr/bin/dbus-launch --exit-with-session
root 935 11 0 23:35:13 vt/5 0:00 /usr/sbin/ttymon -g -d /dev/vt/5 -l console -m ldterm,ttcompat -h -p solaris11
root10731067 0 23:35:14 ? 0:00 sort -u
root 938 11 0 23:35:13 vt/6 0:00 /usr/sbin/ttymon -g -d /dev/vt/6 -l console -m ldterm,ttcompat -h -p solaris11
root1156 1 0 23:35:20 ? 0:00 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
oracle11631159 0 23:35:21 ? 0:00 /usr/lib/ssh/sshd
root1051 1 0 23:35:14 ? 0:00 /usr/sbin/gdm-binary
root10991051 0 23:35:16 ? 0:00 /usr/lib/gdm-simple-slave --display-id /org/gnome/DisplayManager/Display1
noaccess1076 1 0 23:35:14 ? 0:00 /usr/lib/fm/notify/asr-notify
root 979 11 0 23:35:13 vt/4 0:00 /usr/sbin/ttymon -g -d /dev/vt/4 -l console -m ldterm,ttcompat -h -p solaris11
gdm1343 1 0 23:35:30 ? 0:00 /usr/lib/dbus-daemon --fork --print-pid 6 --print-address 8 --session
noaccess1047 1 0 23:35:13 ? 0:00 /usr/lib/fm/notify/smtp-notify
root10671055 0 23:35:14 ? 0:00 /bin/bash /lib/svc/method/svc-texinfo-update start
root13151194 2 23:35:28 ? 0:02 /usr/java/jre/bin/java -Xmx220m -DTZ=localtime -DCCR_CONFIG_HOME=/var/ocm/ccr -
gdm13461099 0 23:35:30 ? 0:00 /usr/bin/gnome-session --autostart=/usr/share/gdm/autostart/LoginWindow/
gdm1362 1 2 23:35:36 ? 0:01 /usr/lib/gnome-settings-daemon --gconf-prefix=/apps/gdm/simple-greeter/settings
root1055 11 0 23:35:14 ? 0:00 /bin/bash /lib/svc/method/svc-texinfo-update start
oracle13801373 0 23:35:47 pts/1 0:00 ps -ef
gdm13611346 0 23:35:36 ? 0:00 /usr/lib/at-spi-registryd
root10701067 5 23:35:14 ? 0:04 /usr/bin/python2.6 /usr/bin/pkg search -H -l -o path :link:path:*/info/dir
root1194 1 0 23:35:26 ? 0:00 /bin/sh /usr/lib/ocm/ccr/bin/emCCR.bin start
root1061 1 0 23:35:14 ? 0:00 /usr/lib/sendmail -bl -q15m
gdm13701346 1 23:35:42 ? 0:00 /usr/lib/gdm-simple-greeter
gdm1364 1 0 23:35:37 ? 0:00 /usr/lib/bonobo-activation-server --ac-activate --ior-output-fd=19
root13721099 0 23:35:42 ? 0:00 /usr/lib/gdm-session-worker
oracle13731163 0 23:35:43 pts/1 0:00 -bash
-bash-4.1$
看我的,,,,,,参数整齐的被截断成只能显示79个字符
root@xx-app:# pgrep -lf java
18672 java -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -server -Xms1g -X
1677 /usr/bin/java -Djava.util.logging.config.file=/software/apache-tomcat-6.0.35/co
7912 /usr/bin/java -Djava.util.logging.config.file=/usr/apache-tomcat/conf/logging.p
21799 java -Djava.awt.headless=true -Djava.net.preferIPv4Stack=true -server -Xms1g -X root@mysql-app:/proc/21799# uname -a
SunOS mysql-app 5.11 11.1 sun4v sparc sun4v /usr/ucb/ps -auxww
页:
1
[2]