Files
linux-wiki/content/deepin折腾笔记/第二章/2.6.md
2021-10-21 14:57:58 +08:00

27 lines
503 B
Markdown
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2.6 tar 命令行压缩解压
1 压缩: tar -cJvf [目标文件名].tar.xz [源文件名/目录名]
2 解压: tar -xJvf [源文件名].tar.xz
3 -c: 建立压缩档案
4 -x解压
5 -t查看内容
6 -r向压缩归档文件末尾追加文件
7 -u更新原压缩包中的文件
8 -v显示所有过程
9 -J有LZMA属性的
10 -z有gzip属性的
11 -j有bz2属性的
12 万能解压tar -xvf filename可根据文件后缀名自动判断。