打开/关闭搜索
搜索
打开/关闭菜单
286
11
3
1359
导航
首页
最近更改
随机页面
特殊页面
特殊页面
上传文件
打开/关闭外观设置菜单
通知
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
登录
查看“︁Tar”︁的源代码
来自天明的百科全书
分享此页面
查看
阅读
查看源代码
查看历史
associated-pages
页面
讨论
更多操作
←
Tar
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
GNU Tar provides the ability to create tar archives, as well as various other kinds of manipulation. For example, you can use Tar on previously created archives to extract files, to store additional files, or to update or list files which were already stored. Initially, tar archives were used to store files conveniently on magnetic tape. The name "Tar" comes from this use; it stands for ''t''ape ''ar''chiver. Despite the utility's name, Tar can direct its output to available devices, files, or other programs (using pipes), it can even access remote devices or files (as archives).<ref>[https://www.gnu.org/software/tar/ Tar - GNU Project - Free Software Foundation]</ref> == 常用选项 == * <code>-c</code>:创建一个新的归档文件。(取自于单词 Create) * <code>-x</code>:从归档文件中提取文件。(取自于单词 Extract) * <code>-v</code>:显示处理过程中的详细信息。(取自于单词 Verbose) * <code>-f</code>:指定归档文件的名称。(取自于单词 File) * <code>-z</code>:通过 [[gzip]] 压缩归档文件。 == 使用示例 == <syntaxhighlight lang="bash"> # 解压当前目录下 mediawiki-1.43.0.tar.gz 中的所有文件 # 生成一个名为 mediawiki-1.43.0 的目录 tar -xvzf mediawiki-1.43.0.tar.gz </syntaxhighlight><syntaxhighlight lang="bash"> # 将 /var/www/wiki 整个文件夹压缩归档 # 并命名为 mediawiki-backup.tar.gz tar -cvzf mediawiki-backup.tar.gz /var/www/wiki </syntaxhighlight> {{联系天明}} == 参考资料 == <references />
该页面使用的模板:
模板:联系天明
(
查看源代码
)
返回
Tar
。
查看“︁Tar”︁的源代码
来自天明的百科全书