tar 打包管理
root@bk:~/ckh# ls
5.txt 7.txt
# 打包 test.tar.gz
root@bk:~/ckh# tar -cf test.tar.gz 5.txt 7.txt
root@bk:~/ckh# ls
5.txt 7.txt test.tar.gz
# 查看压缩包内容
root@bk:~/ckh# tar -tf test.tar.gz
5.txt
7.txt
root@bk:~/ckh# ls
5.txt 7.txt test.tar.gz
root@bk:~/ckh# rm -rf 5.txt 7.txt
root@bk:~/ckh# ls
test.tar.gz
# 解包
root@bk:~/ckh# tar -xf test.tar.gz
root@bk:~/ckh# ls
5.txt 7.txt test.tar.gz
标签:03,tar,gz,ckh,bk,txt,root,打包
From: https://www.cnblogs.com/ckh2023/p/17745071.html