You have typed a long line of command in terminal. But now you want to clear or delete the entire line. Deleting each character in the command will take sometime and bored you. So are there any keyboard shortcuts that allow you to do this? Yes there are some hotkeys to the rescue.
|CTRL + u||Delete the current command.
The deleted command will be stored into a buffer.
|CTRL + w||Delete a word.|
|CTRL + c||Abort what you are typing.|
|CTRL + d||Delete current character.|
Other hotkeys that might help you work faster in the terminal.
|CTRL + e||Move to the end of line.|
|CTRL + a||Move to the start of line.|
|CTRL + k||Cut text from the cursor to the end of line.|
|CTRL + y||Paste the last cut text or buffer.|
|CTRL + -||Undo.|
|CTRL + b||Backward one character.|
|CTRL + f||Forward one character.|
|ALT + ←||Backward one word.|
|ALT + →||Forward one word.|
- How do I find Java version? - March 21, 2022
- How do I convert CSV to JSON string using Jackson? - February 13, 2022
- How do I convert CSV file to or from JSON file? - February 13, 2022