REALPATH(1) REALPATH(1)
realpath - prints the real file name
/usr/lib/desktop/realpath path
realpath provides command-line access to the realpath(3C) library
routine. realpath uses the realpath(3C) library routine to resolve all
links, symbolic links, and references to ``.'' and ``..'' in path and
prints the result to stdout. If the realpath(3C) call fails for any
reason, path is printed and a non-zero exit status is returned.
The realpath command is intended for use by developers who need access to
absolute pathnames 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/guest.
% /usr/lib/desktop/realpath /usr/people/guest/.profile
/otherdisk/usr/people/guest/.profile
% echo $status
0
% /usr/lib/desktop/realpath ../guest/.profile
/otherdisk/usr/people/guest/.profile
% echo $status
0
% /usr/lib/desktop/realpath aBadFileName
aBadFileName
% echo $status
255
realpath(3C), readlink(1)
PPPPaaaaggggeeee 1111 [ Back ]
|