众所周知的命令,如 make
、rsync
和 git
使用 -n
选项进行试运行.
-n
在这种情况下代表什么?
最佳答案
我的猜测是因为 dry-run 包含字母 n 并且因为 d 和 r 是已经使用过:
$ make --help | grep '^ *-[dr]'
-d Print lots of debugging information.
-r, --no-builtin-rules Disable the built-in implicit rules.
$ rsync --help | grep '^ *-[dr]'
-r, --recursive recurse into directories
-d, --dirs transfer directories without recursing
关于command - 为什么 "-n"通常用于试运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64534753/