sbase

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

readlink.1 (548B)


      1 .Dd 2015-11-16
      2 .Dt READLINK 1
      3 .Os sbase
      4 .Sh NAME
      5 .Nm readlink
      6 .Nd print symbolic link target or canonical file name
      7 .Sh SYNOPSIS
      8 .Nm
      9 .Op Fl f
     10 .Op Fl n
     11 .Ar path
     12 .Sh DESCRIPTION
     13 .Nm
     14 writes the target of
     15 .Ar path ,
     16 if it is a symbolic link, to stdout.
     17 If not,
     18 .Nm
     19 exits with a non-zero return value.
     20 .Sh OPTIONS
     21 .Bl -tag -width Ds
     22 .It Fl f
     23 Canonicalize
     24 .Ar path ,
     25 which needn't be a symlink,
     26 by recursively following every symlink in its path components.
     27 .It Fl n
     28 Do not print the terminating newline.
     29 .El
     30 .Sh SEE ALSO
     31 .Xr readlink 2 ,
     32 .Xr realpath 3