Saturday, September 7, 2013

Wipe Out a Mistyped Terminal Command with Control + U

Wipe Out a Mistyped Terminal Command with Control + U

OS X (and Linux!): As much as we love the command line, because it can do so much more so much faster in many cases, you can make a mistake pretty easily. If you do, just wipe out everything you typed in an instant with a simple keyboard shortcut: Control+U.

When you press those keys, the entire line goes away. That is if you're at the end of the line, at least. If you move the cursor to the left, it'll only delete what's to the left and retain the text to the right. It's a simple thing, but when you make an error it saves a lot of time. If it didn't exist, you'd have to sit and press the delete key until every individual character disappeared.

6 Mac OS X Terminal Tips | Colmjude


View the original article here

No comments:

Post a Comment