readlink man page on OpenBSD

Man page or keyword search:  
man Server   11362 pages
apropos Keyword Search (all sections)
Output format
OpenBSD logo
[printable version]

READLINK(1)		   OpenBSD Reference Manual		   READLINK(1)

NAME
     readlink - display target of symbolic link on standard output

SYNOPSIS
     readlink [-fn] file

DESCRIPTION
     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 the -f option is not specified and readlink is
     invoked with an argument other than the pathname of a symbolic link, it
     exits with a nonzero exit code without printing anything.

     The options are as follows:

     -f	     Canonicalize by following every symlink in every component of the
	     given path recursively.  readlink will resolve both absolute and
	     relative paths and return the absolute pathname corresponding to
	     file.  The argument does not need to be a symbolic link.

     -n	     Do not print a trailing newline character.

EXIT STATUS
     The readlink utility exits 0 on success, and >0 if an error occurs.

SEE ALSO
     readlink(2), realpath(3)

HISTORY
     The readlink utility first appeared in OpenBSD 2.1.

OpenBSD 4.9		       September 3, 2010		   OpenBSD 4.9
[top]

List of man pages available for OpenBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net