Common commands on Ubuntu

Source: Internet
Author: User

# Ctrl + L-clear screen

# Ctrl + C-terminate command

# Ctrl + D-exit shell, it seems that EOF

# Ctrl + Z-place the current process in the background and restore FG.

# Ctrl + R-find from command history

# Ctrl + A-move the cursor to the beginning of the line

# Ctrl + E-move the cursor to the end of the row

# Ctrl + U-Clear the characters from the cursor to the beginning of the line

# Ctrl + w-Clear the word before the cursor

# Ctrl + k-Clear the characters from the cursor to the end of the line

# Ctrl + T-swap the first two characters of the cursor

# Ctrl + Y-paste the character deleted by the previous Ctrl + u command

# Ctrl + P-previous command

# Ctrl + N-next command

# Ctrl + V-enter the control character, for example, CTRL + v <enter>. ^ m is entered.

# Ctrl + F-move a character behind the cursor

# Ctrl + B-move the cursor one character forward

# Ctrl + H-delete the character before the cursor

# N + <ESC> + F-move n words behind the cursor. If n is 1, it can be omitted.

# N + <ESC> + B-move the cursor forward n words. If n is 1, it can be omitted.

# Ctrl + S-suspend the Current Shell

# Ctrl + q-re-enable

<ESC> + D: Delete the cursor from the beginning to the end of the row. Suspended Shell

#!! -Previous command

#! -N-last n historical commands

#! -N: P-print the previous command (not run)

#!? String? -The latest command with "string #! -N: GS/str1/str2/-replace str1 of the nth command with str2 and execute the command (if G is not added, replace only the first command)

(Original address: Http://www.cnblogs.com/xdzone/archive/2011/03/11/1981341.html)

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.