假设我在一个bash终端中,并且有大量的命令历史记录。我按了一大堆向上箭头,现在处于历史的“中间”。我现在想要快速导航到我历史上的第一个或最后一个命令(而不是长时间按住向上或向下箭头)。这个是可能的吗?如果是这样,那么实现这一目标的快捷键是什么?
发布于 2010-10-22 05:33:02
在man page中查看
man bash我在这里为你复制了你正在寻找的东西:
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.https://stackoverflow.com/questions/3992074
复制相似问题