I like having a small terminal for small things (80 x 24), and a big terminal for editing code in vim and such (120 x 38), and sometimes even going full screen, browsing ascci art? I dunno.
Anywho, is there a terminal command that I can use to toggle window sizes for my terminal?
Best Answer
Yes.
resize -s <rows> <columns>
works with Ubuntu's default terminal application (gnome-terminal
).How to resize the terminal until a program is finished
To get a nice effect of having, say,
vim
in a specially-sized window only while it's running:mkdir ~/bin
~/.profile
by default adds~/bin
to thePATH
; For now, you can eithersource ~/.profile
or declare the newPATH
yourself:export PATH="$PATH":~/bin
vim ~/bin/vim
Add the following:
Save
chmod +x ~/bin/vim
Now
vim
will run at size 120×38 and the resizing will be undone whenvim
finishes.