From caf12b20ec715daa6f74a2dd3145a4dfcff128bf Mon Sep 17 00:00:00 2001 From: nick Date: Tue, 8 May 2018 22:45:24 +0800 Subject: [PATCH] update --- other.md | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/other.md b/other.md index b40b5a6..b72b741 100644 --- a/other.md +++ b/other.md @@ -57,4 +57,26 @@ date #输出系统时间与日期,世界标准时间(UTC)格式 Sun May 6 date +"%Y-%m-%d" #输出年月日 date +"%Y-%m-%d %H:%M.%S" #输出年月日时分秒 -``` \ No newline at end of file +``` + +#### history 命令 + +``` +history #显示执行过的命令,以列表显示 + +history 5 #只显示最近执行过的 5 条命令 + +history -c #清除执行过的命令 +``` + +#### fc 命令 + +``` +fc -l #显示执行过的命令 + +fc -l 2 #显示最近执行的 2 条命令 + +fc -ln #显示执行过的命令,不显示编号 + +fc 588 #默认使用 vim 打开,编辑编号为 588 的命令,如果有修改,保存退出之后自动执行 +``` \ No newline at end of file