From coreutils' manual, for
ln makes links between files. By default, it makes hard links; with the -s option, it makes symbolic (or soft) links. Synopses:
ln [option]... [-T] target linkname ln [option]... target ln [option]... target... directory ln [option]... -t directory target...
• If two file names are given, ln creates a link to the first file from the second.
• If one target is given, ln creates a link to that file in the current directory.
• If the --target-directory (-t) option is given, or failing that if the last file is a directory and the --no-target-directory (-T) option is not given, ln creates a link to each target file in the specified directory, using the targets’ names.
What does the part in bold mean?
in particular what do the followings mean
- "failing that if the last file is a directory"
- "using the targets’ names"?