Latest web development tutorials

Linux resize command

Linux command Daquan Linux command Daquan

Linux resize command to set the size of the terminal window.

Instruction execution resize the window can be set to the size of the virtual terminal.

grammar

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

Parameters:

  • -c even if the user environment is not C Shell, C Shell command is also used to change the window size.
  • -s <number of columns> <line number> to set the vertical height and horizontal width of the terminal window.
  • -u user environment is not even Bourne Shell, Bourne Shell command is also used to change the window size.

Examples

Use the C shell

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

Use the Bourne shell

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

Sets the specified size

[root@hnlinux w3cschool.cc]# resize -s 80 160

Linux command Daquan Linux command Daquan