Is there a *Nix tool that can be used to format command output that is too wide for the screen?

Posted by erikcw on Server Fault See other posts from Server Fault or by erikcw
Published on 2010-04-17T03:17:01Z Indexed on 2010/04/17 4:44 UTC
Read the original article Hit count: 256

Filed under:
|
|

I'm running

psql -U postgres template1 -c "select * from pg_stat_activity"

and the output is too wide for my terminal. Is there a *nix command I can use to prevent the output from wrapping? Maybe a setting in screen that enables virtual horizontal scrolling?

© Server Fault or respective owner

Related posts about linux

Related posts about command-line