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 any translation bugs to <https://translationproject.org/team/>
53
55 Copyright © 2019 Free Software Foundation, Inc. License GPLv3+: GNU
56 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
57 This is free software: you are free to change and redistribute it.
58 There is NO WARRANTY, to the extent permitted by law.
59
61 readlink(1), readlink(2), realpath(3)
62
63 Full documentation <https://www.gnu.org/software/coreutils/realpath>
64 or available locally via: info '(coreutils) realpath invocation'
65
66
67
68GNU coreutils 8.31 October 2019 REALPATH(1)