[Bash] Shortcut

Shortcut

For example we have a long command: curl -i http://example.com

Ctrl + a

Move to the beginning of the line

Ctrl + e

Move to the end of the line

Ctrl + k

Remove content from current cursor position to the end of the line.

Ctrl + w

Delete the last word.

Ctrl + l

Clear the screen.

原文地址:https://www.cnblogs.com/Answer1215/p/14398106.html