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

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.

2 thoughts on “Techy: Find All Symlinks (Symbolic Links) on a Linux System”

  1. 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

  2. Pingback: my weblog

Comments are closed.