Go Bash Shell Common shortcut keys

Source: Internet
Author: User
Tags clear screen

Bash Shell Common shortcut keys

Original: Https://github.com/hokein/Wiki/wiki/Bash-Shell%E5%B8%B8%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE

Move cursor
    • ctrl+b: Move forward one character (backward)
    • ctrl+f: Move back one character (forward)
    • alt+b: Move forward one word
    • alt+f: Move back one word
    • ctrl+a: Move to the beginning of the line (A is the first letter)
    • ctrl+e: Move to end of line (end)
    • ctrl+x: Beginning of line to current cursor substitution
Edit command
    • alt+.: The last parameter of the last command to paste (usually used mkdir long-long-dir after, cd mates with alt+. )
    • alt+d: Deletes the current cursor to the near right word start (delete)
    • ctrl+w: Delete current cursor to near left word end (word)
    • ctrl+h: Delete the previous character of the cursor (equivalent to BACKSPACE)
    • ctrl+d: Deletes a character after the cursor (equivalent to delete)
    • ctrl+u: Delete all of the cursor to the left
    • ctrl+k: Delete all of the cursor to the right
    • ctrl+l: Clear Screen
    • ctrl+shift+c: Copy (equivalent left mouse button drag)
    • ctrl+shift+v: Paste (equivalent to middle mouse button)
Other
    • ctrl+n: Next command
    • ctrl+p: Previous command
    • alt+n: The next command (for example, enter and ls Press ' Alt+n ') will find the command in the history ls
    • alt+p: Previous command ( alt+n similar)
    • shift+PageUp: Page Up
    • shift+PageDown: Page Down
    • ctrl+r: Enter history to find the command record and enter keywords. Press multiple times to return to the next occurrence
Zsh
    • d: Lists the previous open commands
    • j: Jump to a previous directory, fuzzy match
VIM Move Cursor
    • b: Move one word forward
    • w: Move one word backwards
Delete
    • dw: Deletes from the current cursor to the next word header
    • de: Delete from current cursor to end of word

Go Bash Shell Common shortcut keys

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.