Categories
Tools

Shell tip: getting a canonical absolute path from a relative path

$ readlink -f relative/path

Gives a full path equivalent to the relative path, and follows every symlink in every component of the name in order to canonicalize it.