Bash: how to get real path of a symlink? [duplicate]
readlink is not a standard command, but it’s common on Linux and BSD, including OS X, and it’s the most straightforward answer to your question. BSD and GNU readlink implementations are different, so read the documentation for the one you have. If readlink is not available, or you need to write a cross-platform script that … Read more