Linux System Command parsing

Source: Internet
Author: User

1. Compression Decompression Command

1) Zip and unzip command

Zip-r Myfile.zip./* Compresses all files and folders in the current directory into Myfile.zip files, and-r means all files in the recursive compressed subdirectory.

Unzip-o-d/home/sunny myfile.zip Unzip the Myfile.zip file to/home/sunny/,-o: Overwrite the file without prompting,-D: Indicates that the file is extracted to the/home/sunny directory.

zip-d myfile.zip smart.txt Delete the Smart.txt file in the compressed file.

Zip-m myfile.zip./rpm_info.txt add rpm_info.txt files to the myfile.zip in the compressed file.

Zip-r filename.zip file1 file2 file3/usr/work/school The above command to compress file1, file2, File3, and/usr/work/school contents to Filen The Ame.zip file.


2) Tar command

Linux System Command parsing

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.