省略号(...)在手册页中的含义是什么

时间:2014-09-21 17:36:52

标签: linux man

我正在阅读ln手册页,并遇到了以下大纲。

ln [-Ffhinsv] source_file ... target_dir

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

1 个答案:

答案 0 :(得分:10)

这意味着可重复的论证(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/