bash Shell shortcut keys

Source: Internet
Author: User
Tags clear screen

TRL key combination

CTRL + A: The cursor moves to the beginning of the line.

CTRL+B: The cursor moves left one letter

CTRL + C: kills the current process.

Ctrl+d: Exits the current Shell.

Ctrl+e: The cursor moves to the end of the line.

Ctrl+h: Deletes the previous character of the cursor, same as the BACKSPACE key.

Ctrl+k: Clears the contents of the cursor to the end of the line.

Ctrl+l: Clear screen, equivalent to clear.

Ctrl+r: Search for previously played commands. There will be a hint to search for the history of bash based on the keywords you entered

Ctrl+u: Clears all content before the cursor to the beginning of the line.

Ctrl+w: Remove a word before the cursor

Ctrl+t: Swap two characters before the cursor position

Ctrl+y: Paste or restore the last delete

Ctrl+d: Delete the letter of the cursor, note the difference between backspace and ctrl+h, and these 2 are the characters before the cursor is deleted.

CTRL+F: Cursor Right Shift

CTRL + Z: Move the current process to the background and use the ' FG ' command to recover. Like top-d1 then CTRL + Z, into the background, then FG, re-restore

ESC Combination

Esc+d: Delete A word after the cursor

Esc+f: Jump Right One word

Esc+b: Jump to the left one word

Esc+t: Swap The two words before the cursor position.

bash Shell 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.