Natasha The Robot

Currently learning... iPhone development!                                     You can follow me on Twitter here

My New Favorite Command Line Shortcut

Posted on

I recently learned about the Command + K command line shortcut on the Mac, and absolutely fell in love :) . When there’s a ton of stuff going on in your Terminal tab, it might be hard to figure out what just happened after you clicked that button on your website vs what was loaded before.


Command + K clears your Terminal tab, so you have a clear slate for debugging. This is especially useful in the tab where you’re running your rails server.

Bonus: Another useful Mac command line shortcut I’ve learned recently is Control + A. This takes you to the beginning of the terminal command that you’re typing. And to go back to the end of the command you’re typing, use Control + E.

What command line shortcuts do you like to use?

  • http://davidnavarromcdonald.com David

    YOU ARE MY FAVORITE BLOG TO READ!

  • http://twitter.com/hc5duke [tɕʰø hwan dʑun] (@hc5duke)

    careful with ⌘+K though, sometimes it’s nice having old outputs around… also if you enable it, you can use alt+← and alt+→ to move through words in terminal. https://fredsco.com/macintosh/enable-the-alt-key-in-os-x-terminal/

  • ream88

    Yes Command + K is indeed a really nice shortcut. I use it on a daily basis ;)