-r
とcommand-R
の違いは何ですかzip
?
明らかに、私はそれをグーグルしました。
さらに、さっきも言及しました。これ違いを見つけようとしましたが、明確な説明はありません。
コミュニティの誰かが私を助けることができますか?
ベストアンサー1
-r
--recurse-paths
Travel the directory structure recursively
-R
--recurse-patterns
Travel the directory structure recursively starting at the current directory
言い換えれば、zip -r
特定のディレクトリの下のファイルを圧縮したいとき、そして特定のディレクトリの下のファイルを圧縮したいときに使用され、そのファイルはそのページで提供されている例に示すように、フラグの後に定義されたパターンと一致します。到着しました。また、デフォルトでは現在のディレクトリから起動されます。zip -R
-R
-R
例:
zip -r foo foo1 foo2
First zips up foo1 and then foo2, going down each directory.
zip -R foo "*.c"
In this case, all the files matching *.c in the tree starting at the current
directory are stored into a zip archive named foo.zip. Note that *.c will
match file.c, a/file.c and a/b/.c. More than one pattern can be listed as
separate arguments.