1READLINK(1) User Commands READLINK(1)
2
3
4
6 readlink - print resolved symbolic links or canonical file names
7
9 readlink [OPTION]... FILE...
10
12 Note realpath(1) is the preferred command to use for canonicalization
13 functionality.
14
15 Print value of a symbolic link or canonical file name
16
17 -f, --canonicalize
18 canonicalize by following every symlink in every component of
19 the given name recursively; all but the last component must
20 exist
21
22 -e, --canonicalize-existing
23 canonicalize by following every symlink in every component of
24 the given name recursively, all components must exist
25
26 -m, --canonicalize-missing
27 canonicalize by following every symlink in every component of
28 the given name recursively, without requirements on components
29 existence
30
31 -n, --no-newline
32 do not output the trailing delimiter
33
34 -q, --quiet
35
36 -s, --silent
37 suppress most error messages (on by default)
38
39 -v, --verbose
40 report error messages
41
42 -z, --zero
43 end each output line with NUL, not newline
44
45 --help display this help and exit
46
47 --version
48 output version information and exit
49
51 Written by Dmitry V. Levin.
52
54 GNU coreutils online help: <https://www.gnu.org/software/coreutils/>
55 Report readlink translation bugs to <https://translationpro‐
56 ject.org/team/>
57
59 Copyright © 2018 Free Software Foundation, Inc. License GPLv3+: GNU
60 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
61 This is free software: you are free to change and redistribute it.
62 There is NO WARRANTY, to the extent permitted by law.
63
65 readlink(2), realpath(1), realpath(3)
66
67 Full documentation at: <https://www.gnu.org/software/coreutils/read‐
68 link>
69 or available locally via: info '(coreutils) readlink invocation'
70
71
72
73GNU coreutils 8.30 July 2018 READLINK(1)