1REALPATH(1) User Commands REALPATH(1)
2
3
4
6 realpath - print the resolved path
7
9 realpath [OPTION]... FILE...
10
12 Print the resolved absolute file name; all but the last component must
13 exist
14
15 -e, --canonicalize-existing
16 all components of the path must exist
17
18 -m, --canonicalize-missing
19 no path components need exist or be a directory
20
21 -L, --logical
22 resolve '..' components before symlinks
23
24 -P, --physical
25 resolve symlinks as encountered (default)
26
27 -q, --quiet
28 suppress most error messages
29
30 --relative-to=DIR
31 print the resolved path relative to DIR
32
33 --relative-base=DIR
34 print absolute paths unless paths below DIR
35
36 -s, --strip, --no-symlinks
37 don't expand symlinks
38
39 -z, --zero
40 end each output line with NUL, not newline
41
42 --help display this help and exit
43
44 --version
45 output version information and exit
46
48 Written by Padraig Brady.
49
51 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
52 Report realpath translation bugs to <https://translationpro‐
53 ject.org/team/>
54
56 Copyright © 2018 Free Software Foundation, Inc. License GPLv3+: GNU
57 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
58 This is free software: you are free to change and redistribute it.
59 There is NO WARRANTY, to the extent permitted by law.
60
62 readlink(1), readlink(2), realpath(3)
63
64 Full documentation at: <https://www.gnu.org/software/coreutils/real‐
65 path>
66 or available locally via: info '(coreutils) realpath invocation'
67
68
69
70GNU coreutils 8.30 July 2018 REALPATH(1)