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

Load the environment variables of .env to the system

Load the environment variables of .env to the system

Laravel linux

My mobile computer, install Laravel 8 on Sony xperia 5 II

This is my first Android phone. It's no problem to try to install Laravel. Basically, I installed vim and mariadb. After executing sshd, you can log in through 8022, it is completely a mobile computer: p. The software I use is Termux...

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?