LN(1) FSF LN(1)
NAME
ln - make links between files
SYNOPSIS
ln [OPTION]... TARGET [LINK_NAME]
ln [OPTION]... TARGET... DIRECTORY
ln [OPTION]... --target-directory=DIRECTORY TARGET...
DESCRIPTION
Create a link(1,2) to the specified TARGET with optional LINK_NAME. If
LINK_NAME is omitted, a link(1,2) with the same basename(1,3,3 File::Basename) as the TARGET is
created in(1,8) the current directory. When using the second form with more
than one TARGET, the last argument must be a directory; create links
in(1,8) DIRECTORY to each TARGET. Create hard links by default, symbolic
links with --symbolic. When creating hard links, each TARGET must
exist.
--backup[=CONTROL]
make a backup of each existing destination file(1,n)
-b like --backup but does not accept(2,8) an argument
-d, -F, --directory
hard link(1,2) directories (super-user only)
-f, --force
remove existing destination files
-n, --no-dereference
treat destination that is a symlink to a directory as if(3,n) it were
a normal file(1,n)
-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=DIRECTORY
specify the DIRECTORY in(1,8) which to create the links
-v, --verbose
print name of each file(1,n) before linking
--help display this help and exit(3,n,1 builtins)
--version
output version(1,3,5) information and exit(3,n,1 builtins)
The backup suffix is `~', unless set(7,n,1 builtins) with --suffix or SIM-
PLE_BACKUP_SUFFIX. The version(1,3,5) 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(3,n) --backup is given)
numbered, t
make numbered backups
existing, nil
numbered if(3,n) numbered backups exist, simple otherwise
simple, never
always make simple backups
AUTHOR
Written by Mike Parker and David MacKenzie.
REPORTING BUGS
Report bugs to <bug-fileutils@gnu.org>.
COPYRIGHT
Copyright 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is
NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
SEE ALSO
The full documentation for ln is maintained as a Texinfo manual. If
the info(1,5,n) and ln programs are properly installed at your site, the com-
mand
info(1,5,n) ln
should give you access(2,5) to the complete manual.
ln (fileutils) 4.1 April 2001 LN(1)