Unix/Linux Go Back    

RedHat 9 (Linux i386) - man page for readlink (redhat section 1)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

READLINK(1)			   BSD General Commands Manual			      READLINK(1)

     readlink -- display target of symbolic link on standard output

     readlink [-fn] file

     The readlink utility when invoked with the pathname of a symbolic link as its argument
     dereferences the symbolic link and prints the name of target on standard output.  If read-
     link is invoked with an argument other than the pathname of a symbolic link, it exits with a
     non-zero exit code without printing anything.

     The following options are available:

     -f    Using realpath(3), canonicalize by following every symlink in every component of the
	   given path recursively.  Note that the resultant pathname might not exist,

     -n    Do not print a trailing newline character.

     The readlink utility exits 0 on success or >0 if an error occurred.

     readlink(2) realpath(3)

     The readlink utility first appeared in OpenBSD.

BSD					 August 18, 1997				      BSD
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 05:18 AM.