Ubuntu – How to you quickly get the complete path to a file for use in terminal

command linefilespaths

How can you quickly get the complete path to a file for use in terminal?

Best Answer

readlink -f foo.bar

or (install it first)

realpath foo.bar