1.\" $OpenBSD: realpath.1,v 1.1 2021/10/13 15:04:53 kn Exp $ 2.\" 3.\" Copyright (c) 2021 Klemens Nanni <kn@openbsd.org> 4.\" 5.\" Permission to use, copy, modify, and distribute this software for any 6.\" purpose with or without fee is hereby granted, provided that the above 7.\" copyright notice and this permission notice appear in all copies. 8.\" 9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16.\" 17.Dd $Mdocdate: October 13 2021 $ 18.Dt REALPATH 1 19.Os 20.Sh NAME 21.Nm realpath 22.Nd print the canonicalized absolute pathname 23.Sh SYNOPSIS 24.Nm 25.Op Fl q 26.Ar file 27.Sh DESCRIPTION 28The 29.Nm 30utility uses 31.Xr realpath 3 32to resolve all symbolic links, extra 33.Dq / 34characters and references to 35.Pa /./ 36and 37.Pa /../ 38in 39.Ar file , 40and prints the absolute pathname on standard output. 41.Pp 42The options are as follows: 43.Bl -tag -width Ds 44.It Fl q 45Do not print errors. 46.El 47.Sh EXIT STATUS 48.Ex -std 49.Sh SEE ALSO 50.Xr readlink 1 , 51.Xr realpath 3 52.Sh HISTORY 53The 54.Nm 55utility first appeared in 56.Ox 7.1 . 57