Command of the day (11 Oct) - readlink

codlinuxreadlink

readlink - Show symlink target

    readlink file: Resolve link for foo. Shows original relative path

    readlink -f file: Shows complete path for link

    readlink -e file: Shows complete path for link resolving components recursively

    find . -type l -exec readlink {} \;: Find all symlinks and shows their targets

 

Get your free ebook

Learn GNU/Linux one command a day

Return to Home Page