You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
907 B

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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
```
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->