Entered the wrong command in Mac Terminal and want to clear the entry

1. Press Control + C: You can press the Control key and the C key to interrupt the currently running command, which will clear the current input and return to the command prompt.

2. Use Control + U: If you want to delete an entire line of commands, you can press the Control key and the U key. This will clear the currently entered command line.

Guess you like

Origin blog.csdn.net/weixin_44216637/article/details/132313631