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.

27 lines
552 B

5 years ago
# **fc**
7 years ago
6 years ago
## 说明
7 years ago
5 years ago
**fc命令** 自动掉用vi编辑器修改已有历史命令当保存时立即执行修改后的命令也可以用来显示历史命令。fc命令编辑历史命令时
会自动调用vi编辑器。fc保存文件后会自动执行所编辑过的命令
7 years ago
5 years ago
## 选项
7 years ago
5 years ago
```markdown
用法:fc [-e 编辑器名] [-lnr] [起始] [终结] 或 fc -s [模式=替换串] [命令]
7 years ago
5 years ago
-l
5 years ago
-n显示历史命令时不显示编号
-r反序显示历史命令
7 years ago
5 years ago
```
7 years ago
5 years ago
## 实例
7 years ago
5 years ago
```bash
fc -l -10 #显示10条历史命令
7 years ago
```
6 years ago