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 .
No Comment
Post your comment