Common Linux commands

Source: Internet
Author: User

From: http://linux.chinaitlab.com/command/867897.html

Man Vim Command help, view the command usage form.

Quick Command Line

Sometimes in X-window, the mouse and keyboard do not work due to a program error. In this case, don't worry, because in Linux, it is almost not as vicious as in win 9X, you only need to press CTRL + ALT + backspace to return to the character interface.

CTRL + A: move the cursor to the beginning of the row.

CTRL + E: move the cursor to the end of the row.

CTRL + L: Clear the terminal. This shortcut works the same as typing clear in the command line.

CTRL + D: log out and close from the shell prompt. You do not have to enter exit when using this shortcut key.

Tab: command line auto-completion.

CTRL + ALT + Delete: shutdown and reboot. This method is used only when the shutdown fails.

CTRL + C exits from the insert mode to the command mode, equivalent to ESC.

CTRL + u scroll up half screen

CTRL + D scroll down the half screen

Basic directory file operation commands

Ls to list the current directory LS-L to list file information LS-a to show hidden files

Touch [filename] creates the file touch file sudo touch file. If the permission is insufficient, add the boot privilege and create the file under the boot.

Rm deletes the RM test1 Test2 test3 file. If multiple files are successfully deleted in Linux, a prompt is returned.

Rm-r Delete directory

Cat to view the file content less to view the file, you can view the file up and down more, only under

CP

. Indicates the current directory

Find/-name test1

Directory management mkdir folder1 create directory mkdir F1 F2

Rmdir F1 Rm-r F1

PWD current working directory

CD [directoyry] Change the Directory

CD back to the home directory CD-back to the last directory CD ...... Back to parent

Copy the entire directory of CP-r F1 F2

Liunx does not have the rename concept. It is used to move MV folder1 folder2 to change the folder name MV test1 Test2 1. Move the file 2. Rename the file sudo mvsourcename. The desname permission is insufficient to escalate the permission to move the file.

Find cp rm can be used to operate files and folders. If-R is specified, it is used to operate folders.

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.