MPE/iX Shell and Utilities Reference Manual, Vol 1

ln(1) MPE/iX Shell and Utilities ln(1)
can’t get rid of the conflicting path name, it does not attempt to establish the new link; it
writes an error message to the standard error and goes on to the next file.
If ln successfully gets rid of the conflicting path name, it then establishes the link.
Options
ln accepts the following options:
–f gets rid of any conflicting path names without asking you for confirmation.
–i checks with you before getting rid of conflicting path names. You must not specify
both –f and –i.
–R links files recursively. That is, you can link an entire hierarchy of subdirectories at
once.
–r is identical to –R.
–s Creates a symbolic link.
DIAGNOSTICS
Possible exit status values are:
0 All requested links were established successfully.
1 Failure due to any of the following:
— an argument had a trailing / but was not the name of a directory
— a file could not be found
— an input file could not be opened for reading
— an output file could not be created or opened for output
— the new link file already exists
— a link could not be established
— a read error occurred on an input file
— a write error occurred on an output file
— the input and output files were the same file
— inability to access a file when using –r
— inability to read a directory when using –r
— inability to create a directory when using –r
— a target is not a directory when using –r
— source and destination directory are the same when using –r
2 Failure due to any of the following:
— invalid command line option
— too few arguments on the command line
— a target that should be a directory but isn’t
1-294 Commands and Utilities