8

I was reading the ln man page and came across the following SYNOPSIS.

ln [-Ffhinsv] source_file ... target_dir

What does symbol ... above mean?

Lev Levitsky
  • 63,701
  • 20
  • 147
  • 175
PunjCoder
  • 450
  • 1
  • 4
  • 12

1 Answers1

20

That means a repeatable argument (source_file).

From 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.

According to the man page, calling ln like that will create links for all source files in the target directory e.g. ln file1 file2 file3 target-dir/.

hello_there_andy
  • 2,039
  • 2
  • 21
  • 51
Lev Levitsky
  • 63,701
  • 20
  • 147
  • 175