Make the number of rows and columns fit your terminal window in Unix

In Unix, the resize utility checks the size of your current terminal window and then automatically resets the number of rows and columns to fit in your terminal window. Typically, this program is in the /usr/bin/X11 directory, but in Solaris, this program is in the /usr/openwin/bin directory. Use the which command to find out where resize is located on your system. To configure your account so that the resize command executes every time you open a new terminal window, add the following line to your .cshrc (csh and tcsh), .profile (sh and ksh), or .bashrc (bash) file:


In Solaris, add the following line:


The resize utility uses stty to change and print terminal settings.

For more information on resize and stty, consult their man pages.

At Indiana University, for personal or departmental Linux or Unix systems support, see Get help for Linux or Unix at IU.

This is document abwh in the Knowledge Base.
Last modified on 2019-06-18 14:46:54.