Linux怎么解压、压缩gz文件(gz文件,linux,开发技术)

时间:2024-04-28 16:45:52 作者 : 石家庄SEO 分类 : 开发技术
  • TAG :

GZ是UNIX系统中的压缩文件,ZIP的Gnu版本,功能和WINRAR一样压缩文件的扩展名。 以·tar.gz为扩展名的是一种压缩文件,在Linux和OSX下常见,Linux和OSX都可以直接解压使用这种压缩文件

Linux怎么解压、压缩gz文件

压缩成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文件的详细内容,希望对您有所帮助,信息来源于网络。
上一篇:C++11中=delete的用法是什么下一篇:

5 人围观 / 0 条评论 ↓快速评论↓

(必须)

(必须,保密)

阿狸1 阿狸2 阿狸3 阿狸4 阿狸5 阿狸6 阿狸7 阿狸8 阿狸9 阿狸10 阿狸11 阿狸12 阿狸13 阿狸14 阿狸15 阿狸16 阿狸17 阿狸18