| 知乎专栏 |
[root@localhost ~]# echo "Hello" > test [root@localhost ~]# xz -z test [root@localhost ~]# ll test.xz -rw------- 1 root root 1436 2019-01-16 06:13 test.xz [root@localhost ~]# xz -d test.xz [root@localhost ~]# cat test Hello
tar 用法
[root@localhost ~]# tar Jcvf test.tar.xz test test [root@localhost ~]# ll test.tar.xz -rw-r--r-- 1 root root 1528 2019-03-19 04:32 test.tar.xz [root@localhost ~]# tar Jxvf test.tar.xz test