bash mendapatkan file path lengkap

$ realpath example.txt
/home/username/example.txt
Captain Obvious