readlink /etc/alternatives/python3

Category: Administration

readlink /etc/alternatives/python3

Print a symlink's target path

readlink resolves a symlink and prints where it actually points. Without -f it shows only one level, so the /etc/alternatives link reveals the real interpreter binary. Add -f to keep resolving until a final non-link path is reached.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.