In Unix, how do I make the number of rows and columns displayed match the size of my terminal window?

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:

 /usr/bin/X11/resize

In Solaris, add the following line:

 /usr/openwin/bin/resize

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 At IU, how do I get support for Linux or Unix?

This is document abwh in the Knowledge Base.
Last modified on 2017-05-16 11:51:46.

Contact us

For help or to comment, email the UITS Support Center.