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.

readlink -f <file_name>