• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

ln

ln

ln Makes links.
ln [-fhns] <source>
									<target>

ln [-fhns] <source1>
									<source2>
									<source3> ... <directory>
								

In the first form, ln links <source> to <target>. If <target> is a directory, a link named <source> is placed in <target>.
In the second form, ln makes links to the files enumerated by <source1> <source2. <source3> … in <directory>. The links have the same names as the sources in the list.
There are two types of links: hard links and symbolic links. The default is hard links. A hard link to a file is indistinguishable from the original directory entry. Hard links may not normally refer to directories and may not span file systems.
A symbolic link refers by name to the file to which it is linked. Symbolic links may refer to directories and may span file systems.
-f Forces the link to occur by unlinking any already existing links.
-h If <target> or <directory> is a symbolic link, it is not followed. This is most useful when used with -f, to replace a symbolic link that might point to a directory.
-n Same as -h. Retained for compatibility with other implementations of ln.
-s Creates a symbolic link; this is most like the idea of aliases you're already familiar with.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint