我正在阅读ln手册页,并遇到了以下内容提要。

ln [-Ffhinsv] source_file ... target_dir

上面的符号...是什么意思?

最佳答案

那意味着一个可重复的参数(source_file)。

man man:

The following conventions apply to the SYNOPSIS section and can be used
as a guide in other sections.

bold text          type exactly as shown.
italic text        replace with appropriate argument.
[-abc]             any or all arguments within [ ] are optional.
-a|-b              options delimited by | cannot be used together.

argument ...       argument is repeatable.
[expression] ...   entire expression within [ ] is repeatable.

根据手册页,像这样调用ln将为目标目录中的所有源文件创建链接,例如ln file1 file2 file3 target-dir/

关于linux - 手册页中的省略号(...)是什么意思,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/25962007/

10-13 02:35