Skip to Content

Gareth53.co.uk - the online home of Gareth Senior

Terminal Shortcuts

3:13p.m., Tue 4 Aug 2009

I use Terminal in OSX a lot. Theres a handful of bash shortcuts that are really useful. There's more but these are the ones I find most useful.

Ctrl + A = Go to the beginning of the line

Ctrl + E = Go to the end of the line

Ctrl + R = History search, for e.g. hit the commadn and type 'svn' and then cycle through all your commands which contain the string 'svn'

Ctrl + W = Cut one word back - uses whitespace as a delimiter

Ctrl + K = Cut everything to the right of the cursor

Ctrl + U = Cut everything to the left of the cursor

Ctrl + Y = Paste whatever was cut using the last 'cut' command

Ctrl + L = clear the screen (but keeps evrything in the current line)

There's a full list of bash shortcuts, courtesy of wikipedia.

Latest Posts

  • Muppets Birthday Card

    5:47p.m., 28 Nov

    Emma loves The Muppets. She even has her own Muppet who we call Emma Too and who was born at ...
  • Detecting Online Status In The Browser

    11:55a.m., 28 Nov

    I was just heading into a meeting when I was asked how our (mostly web-based) iOS application was going to ...
  • Dropping Support for Internet Explorer 6

    2:37p.m., 11 Oct

    Microsoft's Internet Explorer 6 has long been the bane of every front-end developer's life. It's a 10-year old browser - ...
  • Xfm Buzz - A Radio Hack

    1:15p.m., 31 May

    At Global Towers we developers have 10% time to go away and hack at something that might, ultimately, bring value ...

Blog Categories