How to: Find real path of symbolic links in Debian/Ubuntu etc.

Last Updated on

e.g. The symbolic link is “/tmp/” which pointing to the real file “/tmp/”

1 Launch terminal or connect via SSH

2 Use following command we can see all symbolic links within a directory

ls -ahl /tmp | grep "\->"


lrwxrwxrwx 1 [user] [group] [date] [time] ->

3 Alternatively we can use following command to check against single link file

readlink /tmp/


Want to know how to create symbolic/soft links and hard links?

Follow this guide: Quick Linux File Manipulation Commands Reference (and How to: Create Symbolic link/Soft link/Hard link)

Leave a Reply

Your email address will not be published. Required fields are marked *