Processing
 

Keyboard shortcut to jump to the end of the command history in ubuntu terminal

05/12/2014 09:44#1

arkazoid

Member

Joined at: 6 months ago

Post: 1

Thank: 0

Thanked: 0

I searched the web for this already, with no success. The question is: is there any keyboard shortcut to jump right to the end of the command line history?

I ask because I often use the reverse-i-search Ctrl + R feature to quickly find a previous command in the history, but then I may change my mind and type the command from scratch without overwriting any previous command (so clearing the line with Ctrl + ACtrl + K is not an option). Thus I want to jump back to the empty command line (past the end of the command history).

Right now I can only achieve this by scrolling the history using the down arrow key until I hit the end of the history, but it can be painful since I sometimes have to pass through plenty of entries before reaching the end.

05/12/2014 10:46Top#2

thepace

Member

Joined at: 6 months ago

Post: 1

Thank: 0

Thanked: 0

Ctrl + C and UP arrow key.
Ctrl + C -> exits the current browsing of history with Up/Down Key.
Up arrow key -> To get the latest command.

07/07/2016 15:34Top#3

totymedli

Member

Joined at: 10 months ago

Post: 4

Thank: 0

Thanked: 0

As this answer pointed out you can use Meta + < and Meta + >.

For me, under Ubuntu 16.04 with an English keyboard this meant:

  • Beginning of history: Alt + <
  • End of history: Shift + Alt + <

Also, check out this answer to understand the Meta key.

Similar articles

Non-interactive method for dpkg-reconfigure tzdata

5 years ago - Reply: 3 - Views: 140

monit is not able to read mongod.lock

2 years ago - Reply: 3 - Views: 138

Ubuntu: hadoop command not found

2 years ago - Reply: 4 - Views: 244

C# Mono Console.ReadLine quitting

4 years ago - Reply: 1 - Views: 87

linking jsoncpp on Ubuntu

2 years ago - Reply: 1 - Views: 5

Build artifacts over ssh jenkins - PHP

2 years ago - Reply: 1 - Views: 37

Can't load Metasploit after installation

2 years ago - Reply: 5 - Views: 212

Selenium FirefoxDriver in Headless get error

2 years ago - Reply: 1 - Views: 96

Unable to start MongoDB. ERROR: addr already in use

2 years ago - Reply: 2 - Views: 118

ZSH Agnoster Theme showing machine name

2 years ago - Reply: 4 - Views: 248

Unable to start firefox browser with jenkins user

2 years ago - Reply: 2 - Views: 110

vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re vé máy bay vé máy bay giá rẻ ve may bay ve may bay gia re