Is there an easy way I can print the full path of file.txt ?
file.txt
file.txt = /nfs/an/disks/jj/home/dir/file.txt
The
Create a function like the below (echoes the absolute path of a file with pwd and adds the file at the end of the path:
abspath() { echo $(pwd "$1")/"$1"; }
Now you can just find any file path:
abspath myfile.ext