Linux resize command
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:
- -c Even if the user's environment is not C Shell, use C Shell commands to change the window size.
- -s
Set the vertical height and horizontal width of the terminal window. - -u Even if the user's environment is not Bourne Shell, use Bourne Shell commands to change the window size.
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