linux get absolute path of current script code example Example: get full path of files in directory linux command ls | xargs readlink -f