Linux command line shortcut keys and vim shortcuts

Source: Internet
Author: User
Tags clear screen

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.