Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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, SvW, mdpc, Nathan C, growse Jul 12 '13 at 21:51

  • This question does not appear to be about professional 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.

2  
add some w: ps efwww –  F. Hauri Jul 12 '13 at 12:30
3  
man ps is your friend. –  Iain Jul 12 '13 at 12:35
    
buahahahahahaaha –  user590444 Jul 12 '13 at 12:42
3  
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.. stackoverflow.com/questions/5589598/… –  lVlint67 Jul 13 '13 at 3:22
show 2 more comments

1 Answer

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

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

share|improve this answer
1  
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. –  SvW 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
add comment

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