REALPATH(1) REALPATH(1)
readlink - prints the value of a symbolic link
/usr/lib/desktop/readlink path
readlink provides command-line access to the readlink(2) system call.
readlink uses the readlink(2) system call to print the value of a
symbolic link to stdout. If path is not a symbolic link, path is printed
ant a non-zero exit status is returned.
The readlink command is intended for use by developers who need access to
symbolic link contents for their FTR rules.
Suppose that /usr/people/guest is a symlink to
/otherdisk/usr/people/guest and that the current working directory is
/usr/people.
% /usr/lib/desktop/readlink /usr/people/guest
/otherdisk/usr/people/guest
% echo $status
0
% /usr/lib/desktop/readlink guest
/otherdisk/usr/people/guest
% echo $status
0
% /usr/lib/desktop/readlink aBadFileName
aBadFileName
% echo $status
255
readlink(2), realpath(1)
PPPPaaaaggggeeee 1111 [ Back ]
|