Nguyễn Đức Thành
New member
How do I find the complete path of a file in Unix?
Answer
3 Answers. echo “$PWD/filename” will print the name of the filename, including the path. In Linux you can use readlink -f ; on BSDs realpath might work.
Answer
3 Answers. echo “$PWD/filename” will print the name of the filename, including the path. In Linux you can use readlink -f ; on BSDs realpath might work.