Sunday, September 21, 2008

How To Change The Default Terminal Size In Ubuntu


The command line provides an alternative way of doing things in Linux. While the use of the command line is associated with technical people, my personal opinion is that some tasks are easier to do with the command line. For instance, I prefer installing and uninstalling applications using APT rather than the GUI provided in Applications >> Add/Remove... menu.

GNOME Terminal is the default application in Ubuntu for accessing the command line. Out-of-the box, it provides the default window size of 80x24, or 80 columns and 24 lines. If you want to change the default window size whenever you use GNOME Terminal, use the '--geometry' parameter. For example, I increased my window size by 5
0% as follows:

gnome-terminal --geometry=120x36

Go to System >> Preferences >> Main Menu. On the left, click Accessories and select Terminal on the right. Right-click and select Properties. Modify the Command field as shown above. Here is a screen shot from my computer:


5 comments:

where is ivanky said...

Thanks a lot, this is really what I want.

However, I went to System -- Preferences -- Keyboard Shorcuts and placed keyboard shortcut "alt-t" to open a new terminal and it gave me the old default size, not the new size that I want.

Do you happen to know how to change the default size if I use a keyboard shortcut to open a terminat ?

iuselinux.com said...

Hello! I posted an entry that shows step-by-step how to accomplish what you wanted to do. I hope this helps.

Mark said...

Edit /usr/share/vte/termcap/xterm

Find the line that looks like this

:co#80:it#8:li#24:\

and change the co and li values for the number of columns and rows respectively.

Mark said...

Edit /usr/share/vte/termcap/xterm

Find the following line

:co#80:it#8:li#24:\

and change the co and li values for the number of columns and rows respectively.

Jaston Adriel said...

A simpler way is to go to
System > Preferences > Keyboard Shortcuts

then click on Add
name it Terminal or whatever you like
then on the command line.. type in

gnome-terminal --geometry=80x46 or whatever dimensions you like

after than assign a shortcut key for it then viola! you've got it!