The s6-linkname program
s6-linkname gives the content of a symbolic link or resolves a path.
s6-linkname [ -f ] [ -n ] path
- If path is a symbolic link, s6-linkname prints its
content then exits 0.
- Else it prints an error message and exits 111.
- -f : s6-linkname fully resolves path then
prints the result on stdout. path does not have to be a symbolic
- -n : do not print a newline after the result.