Sunday, November 27, 2022

Some hotkeys in the GNU/Linux console CLI

ALT + b (move cursor to the previous word)

ALT + BACKSPACE = remove one word
ALT + f (move cursor to the next word)
ALT-b ALT-f (move between words)
ALT-y (after C-y, roll the the previous cutted things)
CTRL + ALT + Del : reboot the system
CTRL + a (go to the start of line)
CTRL + C = abort
CTRL + d = exit shell
CTRL + e (go end of the line)
CTRL + K = delete right side line (cut from cursor to the end)
CTRL + L (clear the screen)
CTRL + p (search in fish shell history)
CTRL + PgUp & PgDn = switch the terminal tab
CTRL + r (recall bash history)
CTRL + shift + C = copy text
CTRL + shift + V = paste text
CTRL + U = delete left side line
CTRL + u (cut the line)
CTRL + w (cut last word)
CTRL + Y = Undo
CTRL + y (paste)
<CTRL-ALT-E> which expands to the previous argument on this line.
CTRL+BACKSPACE = Reinicia entorno gráfico (no lo soportan todas las distros pero se puede rehabilitar).
CTRL+s in addition to CTRL-r (it browses the historic forward)
CTRL-u or CTRL-k (cut the line starting from the beginning/the point)
CTRL-y (past the last thing that was cutted)
<Esc> . aka Meta-. aka ALT-. to get the last argument from the previous line,
Fn + left,right arrow keys = jump on first and last line