Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Tried with SCO OpenServer (old UNIX) and modern Fedora, with Konsole and XTerm. Neither 'ps' in either terminal truncates output to fit the terminal. What 'ps' on what OS did that?

Some Googling indicates that on Solaris, 'ps' would default to 80 characters wide before truncating, apparently ignoring the size of the terminal. However even that apparently did not apply when piping; it would output the full line in that case.



After checking, it seems that procps-ng ps doesn't truncate when piped, heirloom ps and plan9 ps never truncate, Net- and OpenBSD ps always truncate.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: