UnixServerAdmin

Server Administration & Management

How to find all symbolic links with the “find” command

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

Advertisements

February 18, 2011 Posted by | Tips & Tricks, Unix/Linux | , , | 1 Comment