Super User is a question and answer site for computer enthusiasts and power users. 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 am on windows and often have to ssh to linux machines. Though as much as I would love to have an alternate ssh client, none really comes part to Putty. One thing or the other always breaks, even in putty the numpad becomes unusable. Anyway, I want to set the putty's window's width to more than my screen allows. So I can scroll horizontally to view it. The reason being that I run select * commands and those long records occupy many lines each affecting readability. Thanks!

share|improve this question
up vote 4 down vote accepted

PuTTY doesn't support that. What you can do is pipe your output through less with the -S option, which tells it not to wrap long lines, and use the left and right arrow keys to scroll sideways:

your_command | less -S

(Note that that will only work if the command is invoked from a shell, but not from within an SQL client or some such.)

share|improve this answer
How do we pipe output? :D – Saad Rehman Shah Apr 13 '12 at 10:13

PuTTY for Windows allows you to set the column width in the session settings.

If you are already logged on; right-click on the PuTTY title bar, choose "Change Settings..." from the popup. Click on the "Window" category, and change the columns (80 by default) under the "Set the size of the window". You can save this to your putty session too, if you like.

share|improve this answer

If you are using MySQL, a workaround is to set the pager to less.

Turn off auto wrap in PuTTY. (Under Terminal/ deselect "Auto wrap mode initially on")

mysql> pager less -S
PAGER set to 'less -S'

Then you can scroll left and right with arrows.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .