DAY3, Linux shortcut keys, and vim command shortcuts

Source: Internet
Author: User
Tags clear screen

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

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.