How to get complete path to a file in terminal

Use readlink -f to get the complete absolute path to a file in the terminal.

Filed under
readlink -f <file_name>
Edit on GitHub