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.