readlink
With no options, show what symlink points to, return error if not symlink. toybox
On Linux
Linux
With no options, show what symlink points to, return error if not symlink. Options for producing canonical paths (all symlinks/./.. resolved):
readlink [-efmnqz] FILE...
-eCanonical path to existing entry (fail if missing)-fFull path (fail if directory missing)-mIgnore missing entries, show where it would be-nNo trailing newline-qQuiet (no error messages)-zNUL instead of newline