how to get path in linux code example
Example 1: linux get full path
readlink -f file.txt #file
readlink -f Downloads #folder
Example 2: get full path of files in directory linux command
ls | xargs readlink -f
readlink -f file.txt #file
readlink -f Downloads #folder
ls | xargs readlink -f