Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.


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

1 Answer 1

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.