文件压缩/解压

Zip

sudo apt install zip unzip
zip -r filename.zip folder
zip -r filename.zip folder1 folder2
zip -r filename.zip /path/to/folder1 /path/to/file2
unzip multiple files
unzip '*.zip'

remember to use quotes

with a size limit
zip -s 670m -r archive.zip directory/

Unzip:

“unsplit” the ZIP file using the “-s 0” switch:

zip -s 0 archive.zip --out unsplit.zip

… and then you unzip the unsplit file:

unzip unsplit.zip

ref: https://serverfault.com/questions/760337/how-to-zip-files-with-a-size-limit

发布了26 篇原创文章 · 获赞 0 · 访问量 1076

猜你喜欢

转载自blog.csdn.net/qq_41212157/article/details/102525176