linux get path of file code example
Example 1: linux get full path
readlink -f file.txt #file
readlink -f Downloads #folder
Example 2: linux file path
readlink -f file.txt
readlink -f file.txt #file
readlink -f Downloads #folder
readlink -f file.txt