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 ex‐
20 ist
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 any translation bugs to <https://translationproject.org/team/>
56
58 Copyright © 2020 Free Software Foundation, Inc. License GPLv3+: GNU
59 GPL version 3 or later <https://gnu.org/licenses/gpl.html>.
60 This is free software: you are free to change and redistribute it.
61 There is NO WARRANTY, to the extent permitted by law.
62
64 readlink(2), realpath(1), realpath(3)
65
66 Full documentation <https://www.gnu.org/software/coreutils/readlink>
67 or available locally via: info '(coreutils) readlink invocation'
68
69
70
71GNU coreutils 8.32 July 2021 READLINK(1)