Unix/Solaris Terminal too wide

On older Solaris or other Unix systems we quite often see following error while opening log files etc in vi or view terminal

root> vi abc
Terminal too wide
:
This is because the terminal is not wide enough to display more characters in one line.

Solution:

Execute following command on shell prompt. This will increase the width the number of columns on the terminal. After this you should be able to open files in vi or view without any issues.

stty columns 120

Apr 27th, 2010 | Posted by Tushar Thakker | In Linux/Unix/Solaris, Shell scripting, Unix administration
No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>