- 论坛徽章:
- 0
|
自己找到了,感谢eagle
Solaris下ps如何输出完整的进程名称
===========================================================
作者: eagle_fan(http://eagle_fan.itpub.net)
发表于: 2005.10.21 09:35
分类: Solaris
出处: http://eagle_fan.itpub.net/post/461/43596
---------------------------------------------------------------
Solaris下/usr/bin/ps会截短进程名称,很多时候没法知道完整的进程名称,很不方便。
同事发现/usr/ucb/ps有参数可以显示全名,虽然很简单但是很实用
-u list processes with username,CPU usage,memory usage, optional
-w list full command line, if command line is very long, then -ww must be used
举例如下:
ACC1stby-sjcdb68$> ps -ef |grep rsync |grep -v grep |head -1
oracle 6076 6075 0 18:13:38 pts/5 0:00 /usr/bin/rsh smfdb99.smf /export/home/oracle/bin/rsync2 --server -vlogDtprz . /
ACC1stby-sjcdb68$> which ps
/usr/bin/ps
ACC1stby-sjcdb68$> /usr/ucb/ps -auxww |grep rsync |grep -v grep |head -1
oracle 6977 3.8 0.0 3184 2240 pts/5 S 18:29:08 1:31 /export/home/oracle/bin/rsync2 -alvz --progress /oracle/ACC1/data14/.accaccdpre05kh.dbf xxxxx.xx:/oracle/ACC1/data14/.accaccdpre05kh.dbf |
|