Linux命令参考
latest
归档备份和压缩
bz*
cpio
gz*
tar
简介
选项
示例
zip*
日期与时间
磁盘和文件系统
文件和目录
内核
网络
包管理
Linux命令参考
Docs
»
归档备份和压缩
»
tar
Edit on GitHub
tar
¶
简介
¶
归档工具,和cpio类似
选项
¶
-c 创建归档
-f 指定归档文件
-j 调用bzip2压缩或者解压归档
-l 查看归档内容
-x 解压归档
-z 调用gzip压缩或者解压归档
示例
¶
打包压缩文件:
tar
-
czf
foobar
.
tar
.
gz
foo
bar
解压文件:
tar
-
xzf
foobar
.
tar
Read the Docs
v: latest
Versions
latest
Downloads
pdf
html
epub
On Read the Docs
Project Home
Builds
Free document hosting provided by
Read the Docs
.