Installation and use of six--unzip/zip of Linux learning

Source: Internet
Author: User

Linux system does not have its own compression decompression tool, we need to install it, when using zip or unzip if not installed will appear unzip:command not Found or Zip:command not Found; This happens because there is no installation of unzip and zip;

  1. If the Ubuntu system can be installed with the following command

    sudo apt-get install zip

  2. 2

    If it is installed with Yum, install it with the following command

    Yum install-y unzip zip;

    Cd/home #进入/home Directory
    1. Compress the MyData directory below the/home directory to Mydata.zip
    Zip-r Mydata.zip MyData #压缩mydata目录
    2. Unzip the mydata.zip under the/home directory into the Mydatabak directory
    Unzip mydata.zip-d Mydatabak
    3, the home/home directory below the ABC folder and 123.txt compression becomes abc123.zip

    Zip-r abc123.zip ABC 123.txt
    4. Extract the Wwwroot.zip from the/home directory directly into the/home directory

    Unzip Wwwroot.zip
    5, the Home/home directory under the Abc12.zip, Abc23.zip, abc34.zip simultaneously extracted to the/home directory

    Unzip Abc\*.zip
    6. View the contents of the wwwroot.zip inside the/home directory

    Unzip-v Wwwroot.zip
    7. Verify that the wwwroot.zip under the/home directory is complete

    Unzip-t Wwwroot.zip
    8. Unzip all the files inside the/home directory under Wwwroot.zip to the first level directory

    Unzip-j Wwwroot.zip

Installation and use of six--unzip/zip of Linux learning

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.