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, centos, rsnapshot

How to install rsnapshot on CentOS 7

rsnapshot is a rsync-based tool that can perform snapshot incremental backups. However, we installed which rsnapshot in CentOS. Why is there no such command? There is no way to install it with yum install rsnapshot?

linux, cli

How to use the find command to find files that have been changed within 7 days

If we have changed some files, how to find out through the command line?

linux

haproxy 1.8.9 compilation record

Record the process of compiling haproxy 1.8.9 under Ubuntu.