Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to grep process by information containing in CMD column, but this column strings is cut(limited) and needed info is lost. Please suggest how can I enlarge string size allowed for CMD column.

The OS is Solaris 2.1/SunOS 5.1

share|improve this question

closed as off-topic by Jenny D, Sven, mdpc, Nathan C, growse Jul 12 '13 at 21:51

  • This question does not appear to be about server, networking, or related infrastructure administration within the scope defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

add some w: ps efwww – F. Hauri Jul 12 '13 at 12:30
man ps is your friend. – Iain Jul 12 '13 at 12:35
buahahahahahaaha – user590444 Jul 12 '13 at 12:42
This question appears to be off-topic because it is about basic unix/linux knowledge which is not sysadmin-specific. – Jenny D Jul 12 '13 at 12:46
The general approach to this problem is to install the BSD version of ps which DOES support the ww flag. In response to the off topic claims, I'd call this a duplicate long before I would call a question concerning a SunOS machine off topic..… – Daniel Widrick Jul 13 '13 at 3:22

ps -efww will not restrict the width of a line.

w means "wide". ww means "unlimited width".

share|improve this answer
I got next trying this: ps: illegal option -- w – user590444 Jul 12 '13 at 12:34
@user590444: What OS are you on? "Unix" tell us next to nothing. – Sven Jul 12 '13 at 12:37
uname says : SunOS 5.1 – user590444 Jul 12 '13 at 12:39
This works on Linux. Read the manual page man ps and try some options listed there, that's all I did. – suprjami Jul 14 '13 at 1:37

Not the answer you're looking for? Browse other questions tagged or ask your own question.