tail head cat sleep
QR code linking to this page

Manual Pages  — REALPATH

NAME

realpath – return resolved physical path

CONTENTS

SYNOPSIS


realpath [-q] [path ...]

DESCRIPTION

The realpath utility uses the realpath(3) function to resolve all symbolic links, extra ‘/’ characters and references to /./ and /../ in path. If path is absent, the current working directory (' .amp;') is assumed.

If -q is specified, warnings will not be printed when realpath(3) fails.

EXIT STATUS

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

EXAMPLES

Show the physical path of the /dev/log directory silencing warnings if any:
$ realpath -q /dev/log
/var/run/log

SEE ALSO

realpath(3)

HISTORY

The realpath utility first appeared in FreeBSD 4.3 .

REALPATH (1) June 21, 2011

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

This philosophy, in the hands of amateurs, leads to inexplicably mind-numbing botches like the existence of two programs, “head” and “tail,” which print the first part or the last part of a file, depending. Even though their operations are duals of one another, “head” and “tail” are different programs, written by different authors, and take different options!
— The Unix Haters' handbook