English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux resize command

Linux Command大全

Linux resize command sets the size of the terminal window.

Executing the resize command can set the size of the virtual terminal window.

Syntax

resize [-cu][-s <column number> <row number>]

Parameters:

  • -c Even if the user environment is not C Shell, use C Shell instructions to change the window size.
  • -s <column number> <row number> Set the vertical height and horizontal width of the terminal window.
  • -u Even if the user environment is not Bourne Shell, use Bourne Shell instructions to change the window size.

Online Examples

Use C Shell

[root@linux w3codebox]# resize -c
set noglob;
setenv COLUMNS '99;
setenv LINES '34;
unset noglob;

Use Bourne Shell

[root@hnlinux w3codebox]# resize -u
COLUMNS=99;
LINES=34;
export COLUMNS LINES;

Set Specified Size

[root@hnlinux w3codebox]# resize -s 80 160

Linux Command大全