Linux Resize command parameters and usage--linux set the terminal window Size command __linux

Source: Internet
Author: User

Resize

function Description: Set the size of the terminal window.

syntax:resize [-cu][-s < columns > < lines]

Supplemental Note: Execute resize instruction to set the window size of the virtual terminal.

Parameters
-C Even if the user environment is not C shell, also use C shell instructions to change the size of the window.
-S < columns > < number of rows > sets the vertical height and horizontal width of the terminal window.
-U even if the user environment is not Bourne shell, also use Bourne shell instructions to change the window size.

Example 1: Using C shell

[Root@linuxso linuxso.com]# Resize-c
Set Noglob;
Setenv COLUMNS ' 99 ';
setenv LINES ' 34 ';
Unset Noglob;


Example 2: using the Bourne shell

[Root@linuxso linuxso.com]# Resize-u
columns=99;
lines=34;
Export COLUMNS LINES;
[Root@linuxso linuxso.com]#

Example 3: set the specified size

[Root@linuxso linuxso.com]# resize-s 80 160

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.