Linux或者mac命令zip和unzip使用频率还是蛮高的,下面介绍下如何打zip包与解压zip包。
1.打包
1 | zip -q -r -m -o a.zip a/ |
2.解压
1 | unzip a.zip 即可解压 |
如果解压目录下所有的zip包,使用下面命令:
1 | unzip *.zip |
会报错,因为它会去第一个解压后的目录中查找第二个zip,第二个解压的zip目录中查找第三个解压的zip,所以会出现filename not matched问题。
1 | caution: filename not matched: a.zip |
Where there is an enemy, there is a friend.
书山有路勤为径,学海无涯苦作舟。
欢迎关注微信公众号:【程序员写书】
喜欢宠物的朋友可以关注:【电巴克宠物Pets】
一起学习,一起进步。
