ln

Name

ln -- make links between files

Description

The specification for "ln" is as specified in the SUS but with the following differences as listed below.

Differences

-b, --backup[=CONTROL]

make a backup of each existing destination file

-n, --no-dereference

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

-i, --interactive

prompt whether to remove destinations

-s, --symbolic

make symbolic links instead of hard links

-S, --suffix=SUFFIX

override the usual backup suffix

--target-directory=DIR

move all SOURCE arguments into directory DIR

-v, --verbose

print name of each file before linking

--version

output version information and exit

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 make backups (even if --backup is given)

numbered, t

make numbered backups

existing, nil

numbered if numbered backups exist, simple otherwise

simple, never

always make simple backups