0

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.

1

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 '15 at 0:42
0

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

New contributor
Timon is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.