Home / Linux/Unix/BSD / Find all symbolic links with the find command

Find all symbolic links with the find command

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