Awesome new keyboard shortcuts
A few new bash shortcuts I have recently come across that fill me with joy:
- “Alt + .”: This inserts the last argument to the last command. So say you just tailed a config file and you want to vim it. You can do tail
1thing.conf
then
1vim, “alt + .” and you will get:
1vim thing.conf. Can be very helpful once you get used to it being there!
- “ctrl + r, ctrl + r”: When you do “ctrl + r” and start typing, your bash history is searched for whatever you are typing. But what if there are multiple matches, and you don’t want the first one? Press “ctrl + r” again! This is basically a “find next”. This way you can view the matches and run the one you want.
Possibly Related (no promises):
Related posts brought to you by Yet Another Related Posts Plugin.
November 8, 2008 - 1:11 AM







