typora/note/linux/command/history 命令历史.md

9 lines
359 B
Markdown
Raw Permalink Normal View History

2024-12-11 21:48:55 -05:00
### 命令参数
- `history -c` 清空历史命令,不会清空`.bash_history`
- `history -r ~/.bash_history` 使用文件恢复历史命令
### 执行历史命令
- 上下左右寻找
- 复制粘贴
- `!id`,历史命令 id号![0372eee0edece0cf1d6dced94329db89.png](../../../_resources/0372eee0edece0cf1d6dced94329db89.png)
- ``!!`` 执行上一次命令