The s6-linkname program
s6-linkname gives the content of a symbolic link or resolves a path.
s6-linkname [ -f ] 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