As a SysAdmin/DevOps, I spend a lot of my day in the terminal.
Here are my favorite shortcuts!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
The below two are particularly useful if you have a very long command.
Ctrl + k
Ctrl + u
Ctrl + w
Ctrl + r
clear
command:Ctrl + l
Ctrl + s
Ctrl + s
:Ctrl + q
Ctrl + c
Ctrl + z
I use those constantly every day and it saves me a lot of time.
If I’ve missed any feel free to share them in the comments below!
To go back to the [char] character in the current line.
To go forward to the
[char]
character on the current line.To swap two char around the cursor position.