Filing of documents
- tar
- c ##创建
- f ##指定文件名称
- x ##解档
- v ##显示过程
- t ##查看
- r ##向归档文件中添加文件
- --get ##解档指定文件
- --delete ##删除指定文件
- -C ##指定解档路径
File compression and decompression
- zip -r | unzip
- gzip | gunzip
- bzip2 | bunzip2
- xz | unxz
A wave of file archive compression and decompression operations
- tar zcf bin.tar.gz bin.tar ##gzip格式的压缩
- tar zxf bin.tar.gz ##gzip2格式的解压
- tar jcf bin.tar.bz2 bin.tar ##bzip2格式的压缩
- tar jxf bin.tar.bz2 ##bzip2格式的解压
- tar Jcf bin.tar.xz bin.tar ##xz格式的压缩
- tar Jxf bin.tar.xz ##xz格式的解压