Some useful shortcut keys in LinuxShell

Source: Internet
Author: User
Some useful shortcut keys in LinuxShell-Linux general technology-Linux programming and kernel information. The following is a detailed description. Common RedHat Shell shortcuts

Can stty be used? A. Check all button mappings, but they are not very accurate. It mainly involves shortcut keys for operations such as direction and carriage return deletion.

In the Shell command line:

Some common:

Ctrl + f/B: cursor forward/backward;

Ctrl + a/e: cursor to the beginning/End of the line;

Ctrl + u/k: delete all characters before/after the cursor;

Ctrl +? = Ctrl + xu: undo the last operation;

Ctrl + r: Find the latest matching command;

Ctrl + d = del;

Ctrl + h = backspace;

Ctrl + s/q: Pause/unpause. Note that only the output is paused, not the entire Linux system;

Ctrl + c: abort and create a new row;

There are two other shortcut keys that are easy to use but not belong:

Pushd/popd: cd to a path and save the path to the stack. The path pops up and cd to this path.

Some uncommon:

Ctrl + x: Switch the current position and the beginning of the row;

Ctrl + v: Insert special characters, such as the tab key and some key combinations;

Ctrl + z: abort. It is often used if Ctrl + c is not implemented;

Ctrl + p/n: Same as up/down; previous/next command;

Ctrl + w: Delete to the header;

Ctrl + o = Ctrl + j = Ctrl + m = enter;

Ctrl + t: exchange the current cursor and the previous character. If the current cursor is at the beginning of the line, there is no action.
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.