Ask Different is a question and answer site for power users of Apple hardware and software. 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 am curious as to whether there is an equivalent to the Alt-. command on Mac. On my computer it inserts the following character: ≥, instead of showing the preceding lines final parameter.

share|improve this question
up vote 3 down vote accepted

ESC + . inserts the last argument and is the direct equivalent to Alt + . on Linux


share|improve this answer
It's not exactly equivalent, because you can't for example press period twice while holding escape. The reason why using option as a meta key is disabled by default might be that many keyboard layouts have commonly used characters under option. – user495470 Jun 3 '13 at 7:58

You have to change the Terminal’s behavior to the alt key acts as a meta key (like in X11 Terms). After you check that, everytime you press alt + ., you’ll get the last argument from the previous command. (You can repeat that command n times)

Terminal Preferences

share|improve this answer
That is pretty sweet. Is there any reason why I don't want to turn that option on? – Casebash Sep 10 '10 at 10:13
If you wanted to use the OS X extended characters, for example: alt + . = … or put a Copyright © (alt + c), you would have to find another way to do it, because your ALT key won’t cut it anymore ;) Other than that, if you work with the command line a lot, it’s a good idea to have it checked. – Martín Marconcini Sep 10 '10 at 11:25

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.