2015-10-08 15:15:08 +00:00
|
|
|
.Dd 2015-10-08
|
2015-01-31 13:20:02 +00:00
|
|
|
.Dt READLINK 1
|
2015-01-31 19:37:03 +00:00
|
|
|
.Os sbase
|
2015-01-30 22:34:36 +00:00
|
|
|
.Sh NAME
|
|
|
|
.Nm readlink
|
2015-01-31 23:43:43 +00:00
|
|
|
.Nd print symbolic link target or canonical file name
|
2015-01-30 22:34:36 +00:00
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2015-03-20 21:09:47 +00:00
|
|
|
.Op Fl e | Fl f | Fl m
|
|
|
|
.Op Fl n
|
|
|
|
.Ar path
|
2015-01-30 22:34:36 +00:00
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2015-03-20 21:09:47 +00:00
|
|
|
writes the target of
|
|
|
|
.Ar path ,
|
|
|
|
if it is a symbolic link, to stdout.
|
|
|
|
If not,
|
2015-01-30 22:34:36 +00:00
|
|
|
.Nm
|
2015-03-20 21:09:47 +00:00
|
|
|
exits with a non-zero return value.
|
2015-01-30 22:34:36 +00:00
|
|
|
.Sh OPTIONS
|
|
|
|
.Bl -tag -width Ds
|
2015-03-20 21:09:47 +00:00
|
|
|
.It Fl e | Fl f | Fl m
|
2015-01-31 23:43:43 +00:00
|
|
|
Canonicalize
|
|
|
|
.Ar name ,
|
2015-03-20 21:09:47 +00:00
|
|
|
which needn't be a symlink,
|
|
|
|
by recursively following every symlink in its path components.
|
|
|
|
All | All but the last | No path components must exist.
|
2015-01-30 22:34:36 +00:00
|
|
|
.It Fl n
|
2015-03-20 21:09:47 +00:00
|
|
|
Do not print the terminating newline.
|
2015-01-30 22:34:36 +00:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr readlink 2 ,
|
|
|
|
.Xr realpath 3
|