My New Favorite Command Line Shortcut

9 Oct

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?

Advertisements

2 Responses to “My New Favorite Command Line Shortcut”

  1. David October 15, 2012 at 10:31 pm #

    YOU ARE MY FAVORITE BLOG TO READ!

  2. [tɕʰø hwan dʑun] (@hc5duke) October 15, 2012 at 10:58 pm #

    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/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s