Unix and Linux Discussions Tagged with links |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
3 |
3,650 |
UNIX for Beginners Questions & Answers |
|
|
|
16 |
4,400 |
Shell Programming and Scripting |
|
|
|
2 |
2,916 |
Shell Programming and Scripting |
|
|
|
7 |
3,878 |
Shell Programming and Scripting |
|
|
|
0 |
3,990 |
High Performance Computing |
|
|
|
1 |
2,013 |
Shell Programming and Scripting |
|
|
|
2 |
8,700 |
Programming |
|
|
|
0 |
2,506 |
OS X Support RSS |
|
|
|
4 |
26,518 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
938 |
Software Releases - RSS News |
|
|
|
3 |
1,827 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
937 |
Software Releases - RSS News |
|
|
|
0 |
911 |
Software Releases - RSS News |
|
|
|
1 |
2,864 |
Linux |
|
|
|
0 |
869 |
Software Releases - RSS News |
|
|
|
0 |
1,568 |
UNIX and Linux RSS News |
|
|
|
2 |
2,688 |
Shell Programming and Scripting |
|
|
|
2 |
4,519 |
Programming |
|
|
|
3 |
5,868 |
Shell Programming and Scripting |
|
|
|
0 |
3,203 |
News, Links, Events and Announcements |
|
|
|
5 |
5,052 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,239 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
4,391 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
3,271 |
Shell Programming and Scripting |
|
|
|
9 |
7,548 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
7,181 |
Shell Programming and Scripting |
|
|
|
6 |
9,708 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
18,956 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
4,640 |
UNIX for Advanced & Expert Users |
|
|
|
6 |
12,182 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
20,130 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,569 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
7,930 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,656 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,664 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,789 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
2,365 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
5,247 |
Cybersecurity |
|
|
|
5 |
4,586 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
30,290 |
UNIX for Advanced & Expert Users |
LN(1) General Commands Manual LN(1)
NAME
ln - make links
SYNOPSIS
ln [ -s ] sourcename [ targetname ]
ln [ -s ] sourcename1 sourcename2 [ sourcename3 ... ] targetdirectory
DESCRIPTION
A link is a directory entry referring to a file; the same file (together with its size, all its protection information, etc.) may have
several links to it. There are two kinds of links: hard links and symbolic links.
By default ln makes hard links. A hard link to a file is indistinguishable from the original directory entry; any changes to a file are
effective independent of the name used to reference the file. Hard links may not span file systems and may not refer to directories.
The -s option causes ln to create symbolic links. A symbolic link contains the name of the file to which it is linked. The referenced
file is used when an open(2) operation is performed on the link. A stat(2) on a symbolic link will return the linked-to file; an lstat(2)
must be done to obtain information about the link. The readlink(2) call may be used to read the contents of a symbolic link. Symbolic
links may span file systems and may refer to directories.
Given one or two arguments, ln creates a link to an existing file sourcename. If targetname is given, the link has that name; targetname
may also be a directory in which to place the link; otherwise it is placed in the current directory. If only the directory is specified,
the link will be made to the last component of sourcename.
Given more than two arguments, ln makes links in targetdirectory to all the named source files. The links made will have the same name as
the files being linked to.
SEE ALSO
rm(1), cp(1), mv(1), link(2), readlink(2), stat(2), symlink(2)
4th Berkeley Distribution April 10, 1986 LN(1)