Command Line – How to Quickly Get the Complete Path to a File for Terminal Use

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