Summary of common Linux commands

Source: Internet
Author: User
Summary of common Linux commands

1. compression and decompression

1.rar package

Compression Process: file name .rar to be compressed after RAR
Decompression process: unrar X files to be decompressed

2. Zip

Compression Process: zip file name. ZIP file to be compressed
Decompression process: unzip files to be decompressed

Ii. Rename

The original MV file name is a new file name.

3. delete files or folders

Rm-RF file (folder) Name

Iv. VI operations

1. Press I in edit mode. After the modification is complete, Press ESC to enter browse mode. Then enter ": WQ" to save and exit.

2. to exit in browsing mode, enter ": Q"

3. If you modify the file content but do not want to save it, force exit and enter ": Q! "

5. Create a folder

Mkdir folder name

6. Copy files

1. Basic command: CP source dest

2. If you want to copy a folder, add the parameter-R, for example:

CP-r chbtmp/OPT

VII. transfer documents

MV file dest

Note: The same command is used to rename the transfer object and object. If SRC and DEST are in the same directory, the command is renamed. Otherwise, the command is used to rename the transfer object, for example, to transfer the CHB folder under the/root directory to the/OPT folder, use:

Mv chb/OPT

8. Get the current directory

Command: pwd

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.