How to jump to the bottom of the terminal input history after a long lookback?

7,371

So, pretty much anywhere in Linux/Unix/OSX that you have a command history (e.g. bash), that's probably powered by the Readline library.

Readline has its own set of commands that get linked to keyboard shortcuts, and one of the history manipulation commands is end-of-history which is exactly what you're looking for.

The default keybinding is M->, or, Meta+>. On most Linux setups, Meta is usually bound to the Windows key, so typing Win+> will probably work. If not, or you're on OSX, typing Esc and then > will probably work.

Share:
7,371

Related videos on Youtube

totymedli
Author by

totymedli

An Apple a day keeps the doctor away... Because they use Linux. Please develop the habit of upvoting answers and questions that helped you!

Updated on September 18, 2022

Comments

  • totymedli
    totymedli over 1 year

    I usually browse my terminal history really far into the past by pressing the key to to find something, and after I got that I would like to go to the bottom of the input history, to the now empty new command (is there a word for this?) to enter my new command, but I don't want to press a gazillion times. I also don't want to delete a row in the history with backspace or something else.

    I'm looking for something like Ctrl + End in text editors or something like Ctrl + L in the terminal but it should jump the input and not the output history.

    I wrote terminal because I'm interested in the Linux/Windows/OSX solution too.

  • totymedli
    totymedli almost 9 years
    I tested the OSX version and it works. Thank you for the detailed answer.