Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zip的-f和-u参数似乎写反了 #545

Closed
neko-tail opened this issue Dec 7, 2023 · 1 comment
Closed

zip的-f和-u参数似乎写反了 #545

neko-tail opened this issue Dec 7, 2023 · 1 comment

Comments

@neko-tail
Copy link

网站中介绍为:
-f:此参数的效果和指定“-u”参数类似,但不仅更新既有文件,如果某些文件原本不存在于压缩文件内,使用本参数会一并将其加入压缩文件中;
-u:更换较新的文件到压缩文件内;

在服务器中测试:

$ zip --help
  -f   freshen: only changed files  -u   update: only changed or new files
...
$ zip test.zip 1.txt
  adding: 1.txt (stored 0%)
$ zip -f test.zip 2.txt
$ zip -u test.zip 2.txt
  adding: 2.txt (stored 0%)
@jaywcjlove
Copy link
Owner

@neko-tail 重新整理了参数

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants