Ubuntu Obtenha o caminho completo do arquivo
$ readlink -e ./out.txt
/home/xieerqi/out.txt
$ readlink -e ./out.txt
/home/xieerqi/out.txt