Full command text with unix ps

Solution 1:

Pipe the result into cat .. that'll ignore your terminal settings.

ps -f | cat

Solution 2:

I found this on my FreeBSD's 9 ps man page:

-w Use 132 columns to display information, instead of the default which is your window size. If the -w option is specified more than once, ps will use as many columns as necessary without regard for your window size. Note that this option has no effect if the “command” column is not the last column displayed.

So:

ps auxww

Did what I wanted.

HTH!

Solution 3:

If /usr/ucb dir exists then you may try following command

/usr/ucb/ps -auxww | grep java