mirror of
https://github.com/jaywcjlove/reference.git
synced 2025-06-22 06:51:31 +08:00
doc: update tar.md #134 48dc6076aa
This commit is contained in:
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 1.9 MiB After Width: | Height: | Size: 1.9 MiB |
@ -68,13 +68,12 @@
|
||||
</svg></div><div class="menu-modal"><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#入门">入门</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#介绍">介绍</a><a aria-hidden="true" class="leve4 tocs-link" data-num="4" href="#语法">语法</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#选项">选项</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#创建一个-tar-格式的压缩文件">创建一个 tar 格式的压缩文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#创建压缩后的-targz-存档文件">创建压缩后的 tar.gz 存档文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#生成压缩率更高的-tarbz2-文件">生成压缩率更高的 tar.bz2 文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#解压缩-tar-文件">解压缩 tar 文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#解压缩-targz-文件">解压缩 tar.gz 文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#解压缩-tarbz2-文件">解压缩 tar.bz2 文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#列出归档内容">列出归档内容</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#从-tar-归档文件中提取单个文件">从 tar 归档文件中提取单个文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#从-tar-归档文件中提取多个文件">从 tar 归档文件中提取多个文件</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#使用通配符提取文件组">使用通配符提取文件组</a><a aria-hidden="true" class="leve3 tocs-link" data-num="3" href="#添加文件或目录到-tar-存档中">添加文件或目录到 tar 存档中</a><a aria-hidden="true" class="leve2 tocs-link" data-num="2" href="#另见">另见</a></div></div><div class="h1wrap-body"><div class="wrap h2body-exist"><div class="wrap-header h2wrap"><h2 id="入门"><a aria-hidden="true" tabindex="-1" href="#入门"><span class="icon icon-link"></span></a>入门</h2><div class="wrap-body">
|
||||
</div></div><div class="h2wrap-body"><div class="wrap h3body-exist"><div class="wrap-header h3wrap"><h3 id="介绍"><a aria-hidden="true" tabindex="-1" href="#介绍"><span class="icon icon-link"></span></a>介绍</h3><div class="wrap-body">
|
||||
<p>在Linux平台上,<code>tar</code> 命令是主要的归档实用程序。了解各种 <code>tar</code> 命令选项将帮助您掌握归档文件操作。<code>tar</code> 代表磁带存档。</p>
|
||||
<p>以前 unix 系统管理员使用 <code>tar</code> 执行磁带机备份。<code>tar</code> 命令用于获取文件和目录的集合,并生成高度压缩的归档文件,在Linux中通常称为 <code>tarball</code> 或 <code>tar</code>、<code>gzip</code> 和 <code>bzip</code>。</p>
|
||||
<h4 id="语法"><a aria-hidden="true" tabindex="-1" href="#语法"><span class="icon icon-link"></span></a>语法</h4>
|
||||
<pre class="wrap-text "><code class="language-shell code-highlight"><span class="code-line"><span class="token function">tar</span> <span class="token punctuation">[</span>-ABcdgGhiklmMoOpPrRsStuUvwWxzZ<span class="token punctuation">]</span><span class="token punctuation">[</span>-C <span class="token operator"><</span>目的目录<span class="token operator">></span><span class="token punctuation">]</span><span class="token punctuation">[</span>-f <span class="token operator"><</span>备份文件<span class="token operator">></span><span class="token punctuation">]</span><span class="token punctuation">[</span>--delete<span class="token punctuation">]</span><span class="token punctuation">[</span>--totals<span class="token punctuation">]</span><span class="token punctuation">[</span>文件或目录<span class="token punctuation">..</span>.<span class="token punctuation">]</span>
|
||||
</span></code></pre>
|
||||
<!--rehype:className=wrap-text -->
|
||||
</div></div></div><div class="wrap h3body-not-exist col-span-2"><div class="wrap-header h3wrap"><h3 id="选项"><a aria-hidden="true" tabindex="-1" href="#选项"><span class="icon icon-link"></span></a>选项</h3><div class="wrap-body">
|
||||
<!--rehype:wrap-class=col-span-2-->
|
||||
<p>以前 unix 系统管理员使用 <code>tar</code> 执行磁带机备份。<code>tar</code> 命令用于获取文件和目录的集合,并生成高度压缩的归档文件,在Linux中通常称为 <code>tarball</code> 或 <code>tar</code>、<code>gzip</code> 和 <code>bzip</code>。</p>
|
||||
</div></div></div><div class="wrap h3body-not-exist"><div class="wrap-header h3wrap"><h3 id="选项"><a aria-hidden="true" tabindex="-1" href="#选项"><span class="icon icon-link"></span></a>选项</h3><div class="wrap-body">
|
||||
|
||||
|
||||
|
||||
|
@ -651,7 +651,7 @@
|
||||
<!--rehype:class=home-card&style=margin:1.2rem 0;display: flex;justify-content: center;-->
|
||||
<p>如果你有资源,可以很方便部署 web 版,这非常简单,只需要克隆 gh-pages 分支代码到你的静态服务就可以了,还可以使用 <a href="https://hub.docker.com/r/wcjiang/reference">docker</a> 快捷部署 web 版。</p>
|
||||
|
||||
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang. Updated on 2022/11/18 17:06:29</footer></footer><script>
|
||||
</div></div><div class="h2wrap-body"></div></div></div></div><footer class="footer-wrap"><footer class="max-container">© 2022 Kenny Wang. Updated on 2022/11/18 17:17:54</footer></footer><script>
|
||||
if(('onhashchange' in window) && ((typeof document.documentMode==='undefined') || document.documentMode==8)) {
|
||||
window.onhashchange = function () {
|
||||
anchorPoint()
|
||||
|
Reference in New Issue
Block a user