version 1.3, 1997/09/23 20:13:21 |
version 1.4, 1998/09/27 16:57:50 |
|
|
utility when invoked with the pathname of a symbolic link as its |
utility when invoked with the pathname of a symbolic link as its |
argument dereferences the symbolic link and prints the name of target |
argument dereferences the symbolic link and prints the name of target |
on standard output. If readlink is invoked with an argument other |
on standard output. If readlink is invoked with an argument other |
than the pathname of a symbolic link it exits with a non-zero exit |
than the pathname of a symbolic link, it exits with a non-zero exit |
code and without printing anything. |
code without printing anything. |
.Pp |
.Pp |
The following option is available: |
The following options are available: |
.Bl -tag -width flag |
.Bl -tag -width flag |
.It Fl f |
.It Fl f |
Canonicalize by following every symlink in every component of the given |
Canonicalize by following every symlink in every component of the given |
|
|
.Pp |
.Pp |
The |
The |
.Nm readlink |
.Nm readlink |
utility exits 0 on success, and >0 if an error occurs. |
utility exits 0 on success or >0 if an error occurred. |
.Sh SEE ALSO |
.Sh SEE ALSO |
.Xr readlink 2 |
.Xr readlink 2 |
.Sh HISTORY |
.Sh HISTORY |
The |
The |
.Nm readlink |
.Nm readlink |
utility first appeared in |
utility first appeared in |
.Ox 2.1 |
.Ox 2.1 . |