# resize

命令设置终端机视窗的大小

## 补充说明

**resize命令** 命令设置终端机视窗的大小。执行resize指令可设置虚拟终端机的视窗大小。

### 语法

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

### 选项

```
-c 　就算用户环境并非C Shell，也用C Shell指令改变视窗大小。
-s <列数> <行数> 　设置终端机视窗的垂直高度和水平宽度。
-u 　就算用户环境并非Bourne Shell，也用Bourne Shell指令改变视窗大小。
```

### 实例

使用 C shell

```
[root@localhost ~]# resize -c
set noglob;
setenv COLUMNS '99';
setenv LINES '34';
unset noglob;
```

使用 Bourne shell

```
[root@localhost ~]# resize -u
COLUMNS=99;
LINES=34;
export COLUMNS LINES;
```

设置指定大小

```
[root@localhost ~]# resize -s 80 160
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hezhiqiang.gitbook.io/linux/ming-ling/resize.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
