get full file path linux code example
Example 1: full path of file linux
readlink -f file.txt
Example 2: linux get full path
readlink -f file.txt #file
readlink -f Downloads #folder
Example 3: get full path of files in directory linux command
ls | xargs readlink -f
Example 4: bash get file full path
$ realpath example.txt
/home/username/example.txt