tar
新建一个tar文档
tgz格式通常也写作tar.gz
查看tar文档内容
解压tar文档
解压到当前工作路径
解压到指定目录
示例
选项
选项
说明
示例
-C
指定目的解压路径
-x
解压
-c
创建打包文件
-z
使用gnuzip压缩算法打包/解压
-v
打印打包/解包过程中文件信息
-f
指定文件
-f
: Use archive file or device ARCHIVE. If this option is not given, tar will first examine the environment variable `TAPE'.If it is set, its value will be used as the archive name. Otherwise, tar will assume the compiled-in default. The defaultvalue can be inspected either using the --show-defaults option, or at the end of the tar --help output.
最后更新于
这有帮助吗?