Home
Shortcut Keys for Linux Terminal
I use Linux terminal a lot. During the day to day usage of terminal, we have to move around the cursor a lot. Given that terminal is a command line interface and not a graphical user interface, we cannot just move our mouse and click to the point where we want the cursor. So, here are some of the shortcut keys to move around the terminal faster.
up arrow
-> to go to the previous executed commanddown arrow
-> to go to the next executed commandleft arrow
-> to move one position to the leftright arrow
-> to move one position to the rightctrl + a
-> to move the cursor to the beginning of the line/rowctrl + e
-> to move the cursor to the end of the line/rowctrl + w
-> to delete the current word on which cursor existsalt + f
-> to move cursor to the next wordalt + b
-> to move cursor to the previous wordctrl + k
-> to delete from cursor to the end of linectrl + u
-> to delete from cursor to the beginning of line (if you are using zsh then you need to addbindkey \^U backward-kill-line
to.zshrc
file)ctrl + y
-> to yank/paste the copied/cut contents at the cursor positionctrl + c
-> to stop the feed/kill the existing processctrl + d
-> to exit the terminal/ end of file signalctrl + l
-> to clear the screen or redraw the terminal windowctrl + r
-> to do a backward search of all the commands typed previously