Unix ps command – Long Process Listing

| Posted by watashii | Filed under Programming, Unix

When viewing full process listings with ps -ef command, sometimes the command name is too long and gets chopped off at the end of the screen. This command name has a limit of 80 characters.

netcool@sun61 [/opt/netcool] 688 % ps -ef|grep 6176
netcool 6176 1 0 Sep 12 ?  31:55 /opt/netcool/platform/solaris2/jre_1.5.0/bin/java -Xmx1024m -Xms256m -Djava.awt

So how can we show the entire command? The solution is to use the /usr/ucb/ps -auxxwww command:

netcool@sun61 [/opt/netcool] 689 % /usr/ucb/ps -auxxwww|grep -i 6176
netcool   6176  0.1 10.5610440428552 ?  R   Sep 12 31:55 /opt/netcool/platform/solaris2/jre_1.5.0/bin/java -Xmx1024m -Xms256m -Djava.awt.headless=true -Dnchome=/opt/netcool -Dngfhome=/opt/netcool/guifoundation -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8 -Dbase.directory=/opt/netcool -Dsm.props.directory=/opt/netcool/etc/sm -Djava.security.auth.login.config=/opt/netcool/guifoundation/conf/mach_jaas.config -Djava.endorsed.dirs=/opt/netcool/guifoundation/common/endorsed -classpath /opt/netcool/platform/solaris2/jre_1.5.0/lib/tools.jar:/opt/netcool/guifoundation/bin/bootstrap.jar -Dcatalina.base=/opt/netcool/guifoundation -Dcatalina.home=/opt/netcool/guifoundation -Djava.io.tmpdir=/opt/netcool/guifoundation/temp org.apache.catalina.startup.Bootstrap start

Share:

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Print
  • email

Related Posts:

  1. UNIX file size listing – du command
  2. Unix LS Command With Colors… Without the —color Option
  3. Unix Split, Join & Validate Files
  4. Unix – Creating Cron Jobs with Crontab
  5. Unix Shell – Check If Directory Is Empty

Tags: ,

Leave a Reply