Linux command-line shortcut keys and tips

Source: Internet
Author: User

Linux system operation, most of them do not use the shortcut key habits, feel the mouse point is convenient, in fact, in some operations, the use of shortcut keys can save a lot of time, the following gives you a detailed introduction of the Linux system shortcut keys, for your reference only.

History Command Query

· !! Executes the previous command

!$ represents the last string of the previous command

!num the num command in the Execution History command

!-num to execute the countdown num command in the history command

· !? String? Executes the most recent command containing string strings

. Ctrl + R lookup (historical command). History|grep

. CTRL + P previous↑ Previous command

. CTRL + N next↓ next command

· ESC +. Displays the last string of the previous command

Cursor movement

. Ctrl + a switches to the command line start

. Ctrl + E To switch to the end of the command line

. CTRL + B cursor moves the position of one symbol to the left

. CTRL + F cursor moves the position of one symbol to the right

Cut paste

. Ctrl + u Clear (cut) the contents of the cursor before

. Ctrl + K Clears (cuts) the contents after the cursor

. Ctrl + Y paste

. ESC + F Moves the cursor to the end of the word

. ESC + B Moves the cursor to the beginning of the word

· Ctrl + H deletes the previous character

Other types

. Ctrl + C terminates the current command or script

. Ctrl + D exits the current shell, which is equivalent to exit logout, deleting the character after the cursor.

. Ctrl + L Clears the contents of the screen, which is equivalent to clear.

. tab all command and path completion function, generally need to press a few more

. ESC +. Reference/use last parameter (end) of previous command

#SecureCRT快捷键

. Ctrl+shift+c the command line to copy content

. Ctrl+shift+v command line paste content

#Xshell快捷键

. Shift+insert paste

. Ctrl+insert replication


This article is from the "Dotlim blog" blog, make sure to keep this source http://dotlim.blog.51cto.com/12633007/1956404

Linux command-line shortcut keys and tips

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.