Linux command line shortcut keys
Shortcut key: Tab auto-complete path directory name, auto-complete command
Shortcut keys: Ctrl +l (lowercase) Clear screen, Ctrl +c Cancel current operation
Shortcut key: Ctrl +d (lowercase) to exit the current user
Shortcut keys: Ctrl +a (lowercase) to the beginning of the command line
Shortcut keys: Ctrl +e (lowercase) to the end of the command line
Shortcut key: Ctrl+k Delete/Cut the position 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 key: Ctrl+y paste
Shortcut key: ctrl+r Find History command
Shortcut: Ctrl + Left and right to move a word around the position
Shortcut key: Ctrl+s lock
Shortcut key: Ctrl+q unlock
Shortcuts in Vim
: Wq Save Exit
: wq! Force Save exit
: q! Force quit does not save
: w/Path Save As
G: $ move to the last line
Gg:1 move to the first line
100g 100g:100 move to line 100th
0 ^ Cursor position moves to the beginning of the current line
$ cursor position moves to the end of the current line
YY copy
P Paste
100p (100 times) paste 100 times
DG Delete/Cut the current line to the last row
U Cancel the previous step modification
DD Delete a row
/What you're looking for, n continue down search, n continue search down search
? Search up
: Noh temporarily cancel highlight
: Help G:ha G Query Assistance (VIM)
: Set NU Displays line number
: Set Nonu suppress line numbers
DAY3, Linux shortcut keys, and vim command shortcuts