Techy: Find All Symlinks (Symbolic Links) on a Linux System

July 19th, 2007 by Richy B. Leave a reply »

I’ve just needed to try and find all symbolic links (symlinks) on a RedHat Enterprise Linux server so I can replicate the setup of the server (for some reason, the config files and other settings are in “non-standard” places and are symlinked from the original location).

To find all the sym links, just run this simple Linux command line option:
find / -type l -exec ls -l {} \;

(and, if you would prefer all the symlinks to be stored in a file – as there will be a very large number of them – use the command find / -type l -exec ls -l {} \; > /home/admin/symlinks.txt).

I hope this helps somebody else who has to work with undocumented strangely configured Linux machines.

This post is over 6 months old.

This means that, despite my best intentions, it may no longer be accurate.

This blog holds over 12 years of archived content - during that time, I may have changed my opinion of something, technology will have advanced (and old "best standards" may no longer be the case), my technology "know how" has improved etc etc - it would probably take me a considerable amount of time to update all the archival entries: and defeat the point of keeping them anyway.

Please take these posts for what they are: a brief look into my past, my history, my journey and "caveat emptor".


  1. Raymond Day says:

    Looks like a nice command to find symlinks. But I was looking for one that could find all symlinks that loop back on there self. Like multimedia/multimedia/multimedia/multimedia that will just go on and on. So is there some way to have this command just find any link that goes over and over set to a number like 10?

    -Raymond Day

Trackbacks /

  1. my weblog
%d bloggers like this: