Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can append a last used parameter via the keyboard shortcut Alt + . yet sometimes, I type too fast and miss my actual target. If I wanted to go back one instance, is there a way to do it?

I unsuccessfully tried to modify it via Shift and Ctrl.

How to revert direction of the last parameter shortcut?

share|improve this question
I normally swear and try again :) – Bernhard Jul 15 '13 at 7:45
@Bernhard I've just been there. Again. Hence the question ;) – k0pernikus Jul 15 '13 at 7:46
Looks like this has been asked before on superuser: How can you reverse the direction of alt-period in Bash? – ahilsend Jul 15 '13 at 9:29
Define "target" and "instance" please. – glenn jackman Jul 15 '13 at 10:19
@glennjackman Typing alt. four times, while you needed three. – Bernhard Jul 15 '13 at 11:41
up vote 2 down vote accepted

Like most commands, Alt+. takes a numeric argument. Passing an argument of -1 reverses the direction. Hence:

Oops, overshot!
Alt+-, Alt+.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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