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)

Latest Posts

Blog Categories