ln

Name

ln -- make links between files

Description

ln is as specified in the SUSv2 but with differences as listed below.

Differences

-s

as specified in the SUSv3

LSB Deprecated Differences

The behaviors specified in this section are expected to disappear from a future version of the LSB; applications should only use the non-LSB-deprecated behaviors.

-b, --backup[=CONTROL]

makes a backup of each existing destination file.

-n, --no-dereference

treats destination that is a symlink to a directory as if it were a normal file.

-i, --interactive

prompts whether to remove destinations.

--symbolic

synonym for -s.

-S, --suffix=SUFFIX

overrides the usual backup suffix.

--target-directory=DIR

moves all SOURCE arguments into directory DIR.

-v, --verbose

prints name of each file before linking.

--version

outputs version information and exits.

Notes

The backup suffix is ~, unless set with --suffix or SIMPLE_BACKUP_SUFFIX. The version control method may be selected via the --backup option or through the VERSION_CONTROL environment variable. Here are the values:

none, off

never makes backups (even if --backup is given).

numbered, t

makes numbered backups.

existing, nil

numbered if numbered backups exist, simple otherwise

simple, never

always makes simple backups.