ubuntu how to get the full path to the current directory code example Example: linux get full path readlink -f file.txt #file readlink -f Downloads #folder