path of linux file code example Example 1: full path of file linux readlink -f file.txt Example 2: linux file path readlink -f file.txt