Find all symbolic links with the find command
Posted June 25th, 2010 in Linux/Unix/BSD and Quick Tips
This quick tip shows how to find all the symbolic links under a particular directory using the "find" command from the command line on UNIX based systems such as Linux, OSX and BSD.
Find all symbolic links
Substitute [path] in the example below with the root level path you want to find symlinks from, and note that the final letter after -type is a lower case L (i.e. l for link):
find [path] -type l
To find symlinks in all subdirectories from the current directory:
find . -type l
Related posts:
- Using find to locate all zero length files (Thursday, August 4th 2011)
- Using find to locate files bigger or smaller than a size (Thursday, April 14th 2011)
- Using find to locate files modified in the last 24 hours etc (Friday, December 28th 2007)

Comments
blog comments powered by Disqus