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 components of the path need exist
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=FILE
31 print the resolved path relative to FILE
32
33 --relative-base=FILE
34 print absolute paths unless paths below FILE
35
36 -s, --strip, --no-symlinks
37 don't expand symlinks
38
39 -z, --zero
40 separate output with NUL rather than newline
41
42 --help display this help and exit
43
44 --version
45 output version information and exit
46
47 GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
48 Report realpath translation bugs to <http://translationpro‐
49 ject.org/team/>
50
52 Written by Padraig Brady.
53
55 Copyright © 2013 Free Software Foundation, Inc. License GPLv3+: GNU
56 GPL version 3 or later <http://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 The full documentation for realpath is maintained as a Texinfo manual.
64 If the info and realpath programs are properly installed at your site,
65 the command
66
67 info coreutils 'realpath invocation'
68
69 should give you access to the complete manual.
70
71
72
73GNU coreutils 8.22 October 2018 REALPATH(1)