My New Favorite Command Line Shortcut

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?

Enjoy the article? Join over 17,500+ Swift developers and enthusiasts who get my weekly updates.