![]() |
| Linux Terminal Shortcuts |
Removing char by char either by pressing the backspace button or the delete button in the terminal is such a pain. Please do not do that!!! instead follow these easy shortcuts,
- Do not press backspace chars by chars to type the next command or remove all the chars/bigCommands.
- Press Ctrl + U to delete the complete line
- Do not press delete chars by chars to delete all right-side chars, instead,
- Press Ctrl + K to delete all the chars coming after the cursor
- Move the cursor start of the line,
- Press Ctrl + A
- Move the cursor end of the line,
- Press Ctrl + E
Additional useful commands,
If you know you have to execute a sequence of commands in advance then instead of typing multiple commands one by one, you can follow these,
- Execute multiple commands together does not matter if any one of them is failing,
It would execute push even commit fails, it does not respect chaining.
- Execute multiple commands together in the chain, if one command fails then it will stop executing the next command in the chain,
Here if the commit fails then it won't attempt to push the changes.
