Easy Tutorial
❮ Linux Comm Shutdown Linux Comm Gzip ❯

Linux resize Command

Linux Command Manual

The 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 <columns> <rows>]

Parameters:

Examples

Using C shell

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

Using Bourne shell

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

Setting a specific size

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

Linux Command Manual

❮ Linux Comm Shutdown Linux Comm Gzip ❯