Search notes:

Shell command: readlink

$ readlink /sbin/init
../lib/systemd/systemd

-f: Follow the symlinks

$ readlink /usr/bin/nc
/etc/alternatives/nc

$ readlink /etc/alternatives/nc
/usr/bin/ncat

$ readlink -f /usr/bin/nc
/usr/bin/ncat

See also

Shell commands such as ln -s, namei and stat.

Index