tail -f findings.out

« Keyword bookmarks: Just better

Launchy on Linux »

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
    1
    thing.conf

    then

    1
    vim

    , “alt + .” and you will get:

    1
    vim 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.
Share and Enjoy:
  • email
  • LinkedIn
  • Slashdot
  • StumbleUpon
  • Technorati
  • Netvibes

Post to Twitter Post to Delicious Post to Digg Post to Reddit

Possibly Related (no promises):

  1. Easily sum matching file line counts

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , ,
November 8, 2008 - 1:11 AM
Leave a reply

Subscribe without commenting

Twitter links powered by Tweet This v1.6.1, a WordPress plugin for Twitter.