readlink.1 (775B)
1 .TH READLINK 1 sbase\-VERSION 2 .SH NAME 3 readlink \- print value of a symbolic link or canonical file name 4 .SH SYNOPSIS 5 .B readlink 6 .RB [ \-fn ] 7 .IR file 8 .SH DESCRIPTION 9 The readlink utility when invoked with the pathname of a symbolic link as 10 its argument dereferences the symbolic link and prints the name of target 11 on standard output. If the -f option is not specified and readlink is 12 invoked with an argument other than the pathname of a symbolic link, it 13 exits with a nonzero exit code without printing anything. 14 .SH OPTIONS 15 .TP 16 .B \-f 17 Canonicalize by following every symlink in every component of the 18 given path recursively. The argument does not need to be a symbolic 19 link. 20 .TP 21 .B \-n 22 Do not output the trailing newline. 23 .SH SEE ALSO 24 .IR readlink (2), 25 .IR realpath (3)