first commit
This commit is contained in:
26
content/deepin折腾笔记/第二章/2.6.md
Executable file
26
content/deepin折腾笔记/第二章/2.6.md
Executable file
@@ -0,0 +1,26 @@
|
||||
# 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,可根据文件后缀名自动判断。
|
||||
|
||||
Reference in New Issue
Block a user