Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux resize command

Linux resize command

Linux Command Reference Linux Command Reference

The Linux resize command sets the size of the terminal window.

Running the resize command can set the window size of a virtual terminal.

Syntax

resize [-cu][-s <列数> <行数>]

Parameters:

Example

Use C shell



[root@linux runoob]# resize -c

set noglob;

setenv COLUMNS '99';

setenv LINES '34';

unset noglob;

Use Bourne shell



[root@hnlinux runoob]# resize -u

COLUMNS=99;

LINES=34;

export COLUMNS LINES;

Set a specified size



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

Linux Command Reference Linux Command Reference