by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 years ago )

How to clear the current command line in Linux or Mac terminal?
For example, if you typed a bunch of instructions wrongly, and you want to clear them,
Be sure to do the same as I used to, use the reverse key to kill slowly, we can use ctrl+u
Remove the entire command line directly.
If you press ctrl+u to delete the entire line command,
If you want to restore , you can press ctrl+y .

Tags: linux mac terminal tips

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


linux

haproxy 1.8.9 compilation record

Record the process of compiling haproxy 1.8.9 under Ubuntu.

linux

How to create an ssh key so that your computer can connect to the instance of GCE

Recently, I just started using Google's GCE, and I will record the official Goolge documentation on how to generate a key for the instance to use. The -C comment here will use the name of the logged-in user, and the -t will use rsa.

linux

The old version of CentOS 6.2 compiles the git process

This article uses CentOS 6.2 to rebuild curl and git. The main reason is that the operating system is too old, so I directly build the latest version of git from source.