sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

ln.1 (987B)


      1 .Dd October 8, 2015
      2 .Dt LN 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm ln
      6 .Nd link files
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl f
     10 .Op Fl L | Fl P | Fl s
     11 .Ar target
     12 .Op Ar name
     13 .Nm
     14 .Op Fl f
     15 .Op Fl L | Fl P | Fl s
     16 .Ar target ...
     17 .Ar directory
     18 .Sh DESCRIPTION
     19 .Nm
     20 creates a hard link
     21 .Ar name
     22 to
     23 .Ar target .
     24 If no
     25 .Ar name
     26 is given, a hard link to
     27 .Ar target
     28 is created in the current directory.
     29 If more than one
     30 .Ar target
     31 is given,
     32 .Nm
     33 hardlinks them in the existing
     34 .Ar directory .
     35 .Sh OPTIONS
     36 .Bl -tag -width Ds
     37 .It Fl f
     38 If
     39 .Ar name
     40 exists and is not a
     41 .Ar target ,
     42 remove it to allow the link.
     43 .It Fl L | Fl P
     44 If
     45 .Ar target
     46 is a symbolic link, create a hard link to the (referenced file) |
     47 (symbolic link itself). The former is the default.
     48 .It Fl s
     49 Create symbolic links instead of hard links.
     50 Disables
     51 .Fl L
     52 and
     53 .Fl P ,
     54 because their purpose does not apply to symbolic links.
     55 .El
     56 .Sh SEE ALSO
     57 .Xr cp 1 ,
     58 .Xr link 2 ,
     59 .Xr symlink 2
     60 .Sh STANDARDS
     61 The
     62 .Nm
     63 utility is compliant with the
     64 .St -p1003.1-2013
     65 specification.