2

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.

3 Answers 3

3

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.

1
  • I tested the OSX version and it works. Thank you for the detailed answer.
    – totymedli
    Jun 18, 2015 at 0:42
0

For Ubuntu 21.04, Ctrl + Shift + . worked for me.

0

I can only comment for Windows systems, running WSL on Windows Terminal, but what worked for me was:

Ctrl + > (Ctrl + Shift + .)

…rather than the Super/Meta/Windows key-based shortcut discussed above.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .