Common commands in linux summary _unix Linux

Source: Internet
Author: User
Tags exit in rar zip

I. Compression and decompression
1.rar Package
Compression process: RAR A compressed file name. rar to be pressed
Decompression process: Unrar x to extract files

2.zip
Compression procedure: Zip-Compressed file name. zip pending files
Decompression process: Unzip to extract files

Two. renaming
MV Original filename new filename

Three. delete files or folders
RM-RF file (folder) name

Four. Operation of VI
1. Enter edit mode Press I, modify complete press ESC to enter browse mode, then enter ": Wq" Save and exit
2. To exit in browse mode, enter ": Q" directly
3. If you modify the contents of the file, but do not want to save, forced to quit, enter ": q!"

Five. Create a folder
mkdir folder name

Six. copy files
1. Basic command: CP source Dest
2. If you want to copy a folder, add parameter-R, such as:
Cp-r chbtmp/opt

Seven. Transfer of documents
MV File Dest

Note: the transfer file and file rename with the same command, if SRC and dest in the same directory, then rename, otherwise that is the transfer file, such as the/root directory under the ChB folder to the/opt folder, use:

MV Chb/opt

Eight. Get 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.