How to scroll to end of command line history

Andras Simon szajmi at gmail.com
Tue May 19 11:48:59 UTC 2009


On 5/19/09, Chris Tyler <chris at tylers.info> wrote:
> On Tue, 2009-05-19 at 12:31 +0100, Dan Track wrote:
>> On Tue, May 19, 2009 at 12:10 PM, Andras Simon <szajmi at gmail.com> wrote:
>> > On 5/19/09, Dan Track <dan.track at gmail.com> wrote:
>> >> Hi,
>> >>
>> >> It's really annoying for me, that when I run "Ctrl+R" to search
>> >> through the history I end up finding my command but I'm stuck in the
>> >> history, how can I get to the end of the history with a keystroke.
>> >
>> > If you're using bash, and haven't changed the line editing mode, then
>> > M-> (that is, hold down Alt while pressing  the '>' key).
>> >
>> > Andras
>>
>> Thanks for that. I'm pressing alt+">" but nothing happens. Any ideas?
>
> You'll need the shift key in there too.

Yes. Without Shift it's not M-> (end-of-history) but M-.
(yank-last-arg). See man bash for details.

Andras




More information about the users mailing list