Show full path of filename from command line

Use readlink with -e flag. Not only it gives you full path to file, it also presents real path of the symlinks

# Linux
readlink -e filename-here.txt

# Macbook
readlink -f filename-here.txt

Leave a Reply