1 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.35.
2 .TH LN "1" "March 2007" "GNU coreutils 6.9" "User Commands"
4 ln \- make links between files
7 [\fIOPTION\fR]... [\fI-T\fR] \fITARGET LINK_NAME (1st form)\fR
10 [\fIOPTION\fR]... \fITARGET (2nd form)\fR
13 [\fIOPTION\fR]... \fITARGET\fR... \fIDIRECTORY (3rd form)\fR
16 [\fIOPTION\fR]... \fI-t DIRECTORY TARGET\fR... \fI(4th form)\fR
18 .\" Add any additional description here
20 In the 1st form, create a link to TARGET with the name LINK_NAME.
21 In the 2nd form, create a link to TARGET in the current directory.
22 In the 3rd and 4th forms, create links to each TARGET in DIRECTORY.
23 Create hard links by default, symbolic links with \fB\-\-symbolic\fR.
24 When creating hard links, each TARGET must exist.
26 Mandatory arguments to long options are mandatory for short options too.
28 \fB\-\-backup\fR[=\fICONTROL\fR]
29 make a backup of each existing destination file
32 like \fB\-\-backup\fR but does not accept an argument
34 \fB\-d\fR, \fB\-F\fR, \fB\-\-directory\fR
35 allow the superuser to attempt to hard link
36 directories (note: will probably fail due to
37 system restrictions, even for the superuser)
39 \fB\-f\fR, \fB\-\-force\fR
40 remove existing destination files
42 \fB\-n\fR, \fB\-\-no\-dereference\fR
43 treat destination that is a symlink to a
44 directory as if it were a normal file
46 \fB\-i\fR, \fB\-\-interactive\fR
47 prompt whether to remove destinations
49 \fB\-s\fR, \fB\-\-symbolic\fR
50 make symbolic links instead of hard links
52 \fB\-S\fR, \fB\-\-suffix\fR=\fISUFFIX\fR
53 override the usual backup suffix
55 \fB\-t\fR, \fB\-\-target\-directory\fR=\fIDIRECTORY\fR
56 specify the DIRECTORY in which to create
59 \fB\-T\fR, \fB\-\-no\-target\-directory\fR
60 treat LINK_NAME as a normal file
62 \fB\-v\fR, \fB\-\-verbose\fR
63 print name of each linked file
66 display this help and exit
69 output version information and exit
71 The backup suffix is `~', unless set with \fB\-\-suffix\fR or SIMPLE_BACKUP_SUFFIX.
72 The version control method may be selected via the \fB\-\-backup\fR option or through
73 the VERSION_CONTROL environment variable. Here are the values:
76 never make backups (even if \fB\-\-backup\fR is given)
82 numbered if numbered backups exist, simple otherwise
85 always make simple backups
87 Written by Mike Parker and David MacKenzie.
89 Report bugs to <bug\-coreutils@gnu.org>.
91 Copyright \(co 2007 Free Software Foundation, Inc.
93 This is free software. You may redistribute copies of it under the terms of
94 the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
95 There is NO WARRANTY, to the extent permitted by law.
99 The full documentation for
101 is maintained as a Texinfo manual. If the
105 programs are properly installed at your site, the command
109 should give you access to the complete manual.