本文介绍了-r 选项中的 9 是什么意思:zip -r9 ${OLDPWD}/package .?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
上下文:有关如何为具有依赖项的 Python 代码创建 zip 文件的 AWS 文档,请参阅:https://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html
Context:AWS documentation on how to create zip files for python code with dependencies, see: https://docs.aws.amazon.com/lambda/latest/dg/lambda-python-how-to-create-deployment-package.html
我知道 -r 是递归标志,但我不清楚 -r9 中的9"实现了什么?
I understand -r is recursion flag, but I'm unclear what the "9" in -r9 achieves?
~/my-function$ cd package
~/my-function/package$ zip -r9 ${OLDPWD}/function.zip .
adding: PIL/ (stored 0%)
adding: PIL/.libs/ (stored 0%)
adding: PIL/.libs/libfreetype-7ce95de6.so.6.16.1 (deflated 65%)
adding: PIL/.libs/libjpeg-3fe7dfc0.so.9.3.0 (deflated 72%)
adding: PIL/.libs/liblcms2-a6801db4.so.2.0.8 (deflated 67%)
...
推荐答案
-r9
是 -r
和 -9
的组合开关.
-r9
is a combination of the -r
and -9
switches.
开关 -9
表示最强压缩,范围从 0 到 9.
The switch -9
means strongest compression, on a scale from 0 to 9.
输入 zip
以获取选项列表.
Type zip
for a list of options.
这篇关于-r 选项中的 9 是什么意思:zip -r9 ${OLDPWD}/package .?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!