Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


OS:ubuntu 12.04

Display: two, one is laptop, and another is a extended monitor, which is bigger.


Open a gnome-terminal in the bigger display, and log on the remote Linux server using ssh.

Then open vim and code. But after I drag the terminal to the laptop monitor, the problem I

have is that the width/size of the remote terminal doesn't fill my Terminal app. window,

only part.

How can I make it fill the entire Terminal area?

share|improve this question

migrated from Mar 8 '13 at 14:01

This question came from our site for professional and enthusiast programmers.

It should resize automatically. Did you try <C-l>? – romainl Mar 8 '13 at 9:21
Yes, pressing <C-l> is useless. – zhanglistar Mar 8 '13 at 9:31
What's the output of $ echo $TERM locally and on the server? – romainl Mar 8 '13 at 9:47
local is xterm. – zhanglistar Mar 8 '13 at 13:58
and the server is xterm too. – zhanglistar Mar 9 '13 at 2:41

After resizing your terminal, you need use resize command. eval `resize` nowadays just resize works. resize

This command changes LINES, COLUMNS environment variable.

You can check your current terminal size with echo $LINES $COLUNNS. try echo $LINES $COLUMNS before and after resize.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .