Linux command line shortcut keys
Shortcut keys: Tab Auto-complete path directory name, +l (lowercase) Clear screen, CTRL ++ + +e (lowercase) to command line end shortcut: Ctrl+k Delete/ cut the contents of the cursor to the end of the line shortcut key: Ctrl+u Delete/ cut the cursor position to the beginning of the content shortcut: Ctrl +y paste shortcut key: Ctrl+r Find history command shortcut: Ctrl+ left and right to move a word position shortcut: Ctrl+s lock shortcut: Ctrl+q unlock
Shortcut key: ctrl+p Skip to previous command
Shortcut key: Ctrl + N jumps to the next command
Shortcuts in Vim
: Wq Save exit: wq! Force Save exit: q! Force quit does not save:W/save Path as G: $ move to last line GG:1move to the first line 100g 100G: -move to line 100th0^move the cursor position to the beginning of the current line $ cursor moves to the current line end yy copy p pasted below the current line (uppercase is pasted above the current line) 100p (100 times) paste 100 times DG Delete/cut the current line to the last row U cancel the previous modificationDDDelete a row
DW Deletes a word starting at the current cursor
NDW delete n words from the current cursor
x Delete the current character (uppercase is the first character removed)
/What are you looking for, N to continue searching down, N to continue searching down? Search up: Noh temporarily cancel highlight: Help G:ha G Query Assistance (VIM): Set nu display line number: Set Nonu suppress line number
Linux command line shortcut keys and vim shortcuts