首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >当您处于历史中间时,导航到历史上最早/最近的命令

当您处于历史中间时,导航到历史上最早/最近的命令
EN

Stack Overflow用户
提问于 2010-10-22 05:24:01
回答 1查看 14.2K关注 0票数 63

假设我在一个bash终端中,并且有大量的命令历史记录。我按了一大堆向上箭头,现在处于历史的“中间”。我现在想要快速导航到我历史上的第一个或最后一个命令(而不是长时间按住向上或向下箭头)。这个是可能的吗?如果是这样,那么实现这一目标的快捷键是什么?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-10-22 05:33:02

man page中查看

代码语言:javascript
复制
man bash

我在这里为你复制了你正在寻找的东西:

代码语言:javascript
复制
previous-history (C-p)
    Fetch the previous command from the history list, moving back in the list.  
next-history (C-n)
    Fetch the next command from the history list, moving forward in the list.  
beginning-of-history (M-<)
    Move to the first line in the history.  
end-of-history (M->)
    Move to the end of the input history, i.e., the line currently being entered.
票数 84
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3992074

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档