(文件)VincentLiao雜記: window 與 linux 的檔案壓縮與切割, 合併與解壓縮
這個問題可以這樣的描述:
如何在 linux 上使用 unzip 解 7z 的 多檔壓縮 large_file.zip.001 ... large_file.zip.999 ?
慢慢的來說吧...
linux 上有個指令可以分割檔案 split, 如果要壓縮的話, 也可以用 zipsplit 這個程式
但是 window 上的話, 如何使用, 來介紹一個 7z 的免費軟體, 讓您的 window 與 linux 傳大檔前先壓縮與切割小檔...
先在 window 上使用 7z 的解壓縮程式, 如果檔案過大, 可以切成 10m 100m 或一個檔案 1g ,
通常 2g 以上會有 fat16 的問題, 這個一上 usb 的系統就會死翹翹
用 7z 軟體在 window 上 壓縮一個超級大檔案, 並切割成 多個壓縮檔如下
large_file.zip.001
large_file.zip.002
large_file.zip.003
large_file.zip.004
...
large_file.zip.901
large_file.zip.902
large_file.zip.903
(dos下合併檔案的方式)
step1: copy large_file.zip.001 + large_file.zip.002 + large_file.zip.003 + large_file.zip.004 ... + large_file.zip.902 +large_file.zip.903
step2: 定義成 large_file.zip 就可以用 zip 來解壓縮
zip -d large_file.zip
(window 下直接可以使用 7z 的介面解壓縮)
...看圖說故事... lol ...
(Linux 下合併檔案的方式 , 與 解壓縮 )
step1: linux 用 cat 合併檔案的方式
cat large_file.zip.001 large_file.zip.002 large_file.zip.003 large_file.zip.004 ... large_file.zip.902 large_file.zip.903 > larget_file.zip
或是
cat large_file.zip.* > large_file.zip
step2: 解壓縮檔
unzip large_file.zip
呵呵...檔案要多大就可以多大, 壓縮後再切割後, 在 window 上可以合併且解壓縮, 在 linux 上也是可以的喔...
...大功告成...