linux**查询历史命令**
时间: 2023-08-22 17:07:41 浏览: 155
LINUX系统查询命令
在Linux系统中,查询历史命令有几种方法:
1. 使用Ctrl + r:按下Ctrl + r键后,可以输入一个或多个字符来搜索最近执行的命令。系统会找到最近一个包含该字符的命令,并在提示符后显示。按回车键可以执行该命令,按上下箭头可以查找该命令前后的命令,按左右箭头可以移动光标并修改该命令。建议在搜索时输入特殊字符以提高搜索准确性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [Linux快速查看和执行历史命令](https://blog.csdn.net/cdq2012/article/details/126029631)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *3* [linux查看历史命令](https://blog.csdn.net/dingding_ting/article/details/116497454)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文