摘要:
Here is how to quickly zip and unzip files using Linux Mint/Ubuntu terminal :1. Install zip and unzip if not present by typing :sudo apt-get install zipsudo apt-get install unzip2. Once installed, to compress files orfolders in .zip format, type :zip nameoftargetziparchive *This will put all the fil 阅读全文
摘要:
tar -c|x|u|r|t[z|j][v] -f [未打包文件]将多个文件打包为一个归档文件,可以在打包的同时进行压缩。支持的格式为tar(归档)、gz(压缩)、bz2(压缩率更高,比较耗时)-c创建-x解包-u更新-r添加-t查看-d比较压缩包内文件和文件-A将tar文件添加到归档文件中-z使用gz压缩格式-j使用bz2压缩格式-v显示过程-f 归档文件的文件名[未打包文件]创建、更新时必须填写示例:tar -czvf xxx.tar.gz xxx/ xxx1 xxx2 xxx3多个待打包文件以空格分隔tar -czvf xxx.tar.gz /home/user/xxx/使用绝对路径打. 阅读全文