Tuesday, August 4, 2015

How to change lines of scrollback in PuTTY permanently

Problem

Often we like to go back to see what we did or what was the output we got in a putty session. But, by default PuTTY can scroll back for 200 lines. As a result, we lose the commands we typed or the logs we saw that keep changing.

Solution

Of course you can change the setting for the current session by clicking the change settings as below:



and then you can change the lines of scrollback to 200000 or to a number of your choice as below:



But how can we change that for every new session that you open. It is possible by updating the 'Default Settings' as below. Open PuTTy and then load 'Default Settings' as below:


an then click 'Window' under Category panel in the left and increase the value as you wish. Best practice is adding 2 or 3 more zeroes:



Now come back to 'Session' and then save the 'Default Settings'. Now on if you open any PuTTy session, the lines of scrollback will reflect the new setting you made.

Conclusion

It is a good DBA/Sysadmin practice to change the lines of scrollback so that you miss your logs/ commands/query output.

No comments:

Post a Comment