how to get the path to a file in linix code example Example: linux get full path readlink -f file.txt #file readlink -f Downloads #folder