# 2.2 CLI命令的编辑技巧

CLI（命令行）有以下特点。

## 1、命令不区分大小写。

## 2、可以使用简写。

命令中的每个单词只需要输入前几个字母。要求输入的字母个数足够与其它命令相区分即可。如：`configure terminal` 命令可简写为 `conf t`。

## 3、用 ⇥ (Tab)键可简化命令的输入。

如果你不喜欢简写的命令，可以用 ⇥ 键输入单词的剩余部分。每个单词只需要输入前几个字母，当它足够与其它命令相区分时，用 Teb 键可得到完整单词。如：输入 `conf(⇥) t(⇥)` 命令可得到 `configure terminal`。

## 4、可以调出历史来简化命令的输入。

历史是指你曾经输入过的命令，可以用“↑”键和“↓”键翻出历史命令再回车就可执行此命令。（注：只能翻出当前提示符下的输入历史。） 系统默认记录的历史条数是10条，你可以用 `history size` 命令修改这个值。

## 5、编辑快捷键：

Ctrl+A——光标移到行首，Ctrl+E——光标移到行尾。

## 6、用“?”可帮助输入命令和参数。

在提示符下输入“?”可查看该提示符下的命令集，在命令后加“?”，可查看它第一个参数，在参数后再加“?”，可查看下一个参数，如果遇到提示“”表示命令结束，可以回车了。


---

# 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://kerwin.gitbook.io/ruijie/jiao-huan-chan-pin/path1/2.-ming-ling-hang-cli-cao-zuo/2.2-cli-ming-ling-de-bian-ji-ji-qiao.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.
