^1640692625638
@
sname
packge
slabel
打包压缩常用命令
stype
thingDesc
sgroup
Linux常用命令.常用命令
sicon
icons/html.png
Sdescription
#$@text#$@
<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:18px"><strong>打包压缩相关命令</strong></span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">gzip：</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">bzip2：</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">tar: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;打包压缩</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">&nbsp; &nbsp; &nbsp;-c &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;归档文件</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">&nbsp; &nbsp; &nbsp;-x &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;压缩文件</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">&nbsp; &nbsp; &nbsp;-z &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;gzip压缩文件</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">&nbsp; &nbsp; &nbsp;-j &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;bzip2压缩文件</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">&nbsp; &nbsp; &nbsp;-v &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;显示压缩或解压缩过程 v(view)</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">&nbsp; &nbsp; &nbsp;-f &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;使用档名</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">例：</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">tar -cvf /home/abc.tar /home/abc &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;只打包，不压缩</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">tar -zcvf /home/abc.tar.gz /home/abc &nbsp; &nbsp; &nbsp; &nbsp;打包，并用gzip压缩</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">tar -jcvf /home/abc.tar.bz2 /home/abc &nbsp; &nbsp; &nbsp;打包，并用bzip2压缩</span></p>

<p style="margin: 10px auto;"><span style="font-family:comic sans ms,sans-serif; font-size:14px">当然，如果想解压缩，就直接替换上面的命令&nbsp; tar -cvf&nbsp; / tar -zcvf&nbsp; / tar -jcvf 中的&ldquo;c&rdquo; 换成&ldquo;x&rdquo; 就可以了。</span></p>
#$@text#$@
sdescriptors
xworker.lang.content.QuickContent
sinheritDescription
false
sth_createIndex
true
sth_registThing
command|xworker.jsch.JCtermRootWord
sth_registMyChilds
false
sth_registDisabled
false
sth_mark
false
