zoukankan      html  css  js  c++  java
  • Mint/Ubuntu Terminal(转)

    Here is how to quickly zip and unzip files using Linux Mint/Ubuntu terminal :

    1. Install zip and unzip if not present by typing :

    sudo apt-get install zip

    sudo apt-get install unzip

    2. Once installed, to compress files or folders in .zip format, type :

    zip nameoftargetziparchive *

     

     

    This will put all the files from current directory into the archive named docs as specified and saved as docs.zip.

    To compress only a single specific file from current directory :

    zip nameofarchive filetobecompressed

     

    2. To unzip the files into a target directory :

    unzip nameofarchive -d pathwheretoextract

     

    Note that specifying just name of archive will unzip it’s contents into the current directory.

    To quickly list what files are present in the zip archive :

    unzip -l nameofarchive

     

    To find out other cool features, as always use man command :

    man zip

    man unzip

    Happy compressing!

     

  • 相关阅读:
    unitTest单元测试框架
    Day06_页面发布与课程管理
    Day05_RabbitMQ研究
    Day04_页面静态化
    Day04_freemarker
    Day03_CMS页面管理开发
    Java概述练习题
    01_语言概述
    00_编程入门
    德道经
  • 原文地址:https://www.cnblogs.com/fatfatdachao/p/3225662.html
Copyright © 2011-2022 走看看