linux压缩与解压

File Type 解压 压缩
.tar tar zxvf FileName.tar tar czvf FileName.tar DirName(打包)
.gz gzip -d FileName.gz gzip FileName
.tar.gz 和 .tgz tar zxvf FileName.tar.gz tar zcvf FileName.tar.gz DirName
.bz2 bzip2 -d FileName.bz2 bzip2 -z FileName
.tar.bz2 tar jxvf FileName.tar.bz2 tar jcvf FileName.tar.bz2 DirName
.Z uncompress FileName.Z compress FileName
.tar.Z tar Zxvf FileName.tar.Z tar Zcvf FileName.tar.Z DirName
.zip unzip FileName.zip zip FileName.zip DirName
linux压缩与解压

Leave a Reply

Your email address will not be published. Required fields are marked *

To create code blocks or other preformatted text, indent by four spaces:

    This will be displayed in a monospaced font. The first four 
    spaces will be stripped off, but all other whitespace
    will be preserved.
    
    Markdown is turned off in code blocks:
     [This is not a link](http://example.com)

To create not a block, but an inline code span, use backticks:

Here is some inline `code`.

For more help see http://daringfireball.net/projects/markdown/syntax