Linux怎么解压、压缩gz文件
导读:本文共1636.5字符,通常情况下阅读需要5分钟。同时您也可以点击右侧朗读,来听本文内容。按键盘←(左) →(右) 方向键可以翻页。
摘要: GZ是UNIX系统中的压缩文件,ZIP的Gnu版本,功能和WINRAR一样压缩文件的扩展名。 以·tar.gz为扩展名的是一种压缩文件,在Linux和OSX下常见,Linux和OSX都可以直接解压使用这种压缩文件。压缩成gzgzip*gzipfile具体参数可使用help查看$gzip--helpUsage:gzip[OPTION]..... ...
音频解说
目录
(为您整理了一些要点),点击可以直达。GZ是UNIX系统中的压缩文件,ZIP的Gnu版本,功能和WINRAR一样压缩文件的扩展名。 以·tar.gz为扩展名的是一种压缩文件,在Linux和OSX下常见,Linux和OSX都可以直接解压使用这种压缩文件。
压缩成gz
gzip*gzipfile
具体参数可使用help查看
$gzip--helpUsage:gzip[OPTION]...[FILE]...CompressoruncompressFILEs(bydefault,compressFILESin-place).Mandatoryargumentstolongoptionsaremandatoryforshortoptionstoo.-c,--stdoutwriteonstandardoutput,keeporiginalfilesunchanged-d,--decompressdecompress-f,--forceforceoverwriteofoutputfileandcompresslinks-h,--helpgivethishelp-k,--keepkeep(don'tdelete)inputfiles-l,--listlistcompressedfilecontents-L,--licensedisplaysoftwarelicense-n,--no-namedonotsaveorrestoretheoriginalnameandtimestamp-N,--namesaveorrestoretheoriginalnameandtimestamp-q,--quietsuppressallwarnings-r,--recursiveoperaterecursivelyondirectories-S,--suffix=SUFusesuffixSUFoncompressedfiles-t,--testtestcompressedfileintegrity-v,--verboseverbosemode-V,--versiondisplayversionnumber-1,--fastcompressfaster-9,--bestcompressbetterWithnoFILE,orwhenFILEis-,readstandardinput.
解压缩gz
gunzip*gunzipfile.gz
具体也是可以用help查看
$gunzip--helpUsage:/opt/compiler/gcc-4.8.2/bin/gunzip[OPTION]...[FILE]...UncompressFILEs(bydefault,in-place).Mandatoryargumentstolongoptionsaremandatoryforshortoptionstoo.-c,--stdoutwriteonstandardoutput,keeporiginalfilesunchanged-f,--forceforceoverwriteofoutputfileandcompresslinks-k,--keepkeep(don'tdelete)inputfiles-l,--listlistcompressedfilecontents-n,--no-namedonotsaveorrestoretheoriginalnameandtimestamp-N,--namesaveorrestoretheoriginalnameandtimestamp-q,--quietsuppressallwarnings-r,--recursiveoperaterecursivelyondirectories-S,--suffix=SUFusesuffixSUFoncompressedfiles-t,--testtestcompressedfileintegrity-v,--verboseverbosemode--helpdisplaythishelpandexit--versiondisplayversioninformationandexitWithnoFILE,orwhenFILEis-,readstandardinput.
</div> <div class="zixun-tj-product adv-bottom"></div> </div> </div> <div class="prve-next-news">
本文:
Linux怎么解压、压缩gz文件的详细内容,希望对您有所帮助,信息来源于网络。