1.打封包件
tar -cf file.tar file1 file2 file3
-c 建立壓縮包
-f 壓縮後的包名
2.解壓檔案
tar -xf file.tar
-x 解包模式
-f 指定tar封包件
3.linux 壓縮方式 gzip bzip2
tar -czvf file.tar.gz file1 file2 file3
tar -cjvf file.tar.bz2 file1 file2 file3
1.打封包件
tar -cf file.tar file1 file2 file3
-c 建立壓縮包
-f 壓縮後的包名
2.解壓檔案
tar -xf file.tar
-x 解包模式
-f 指定tar封包件
3.linux 壓縮方式 gzip bzip2
tar -czvf file.tar.gz file1 file2 file3
tar -cjvf file.tar.bz2 file1 file2 file3