Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As title. How can I see a list of symbolic links in the format A -> B starting from a specified directory including all it's sub directories?

This is on a Mac by the way.

share|improve this question

migrated from Apr 1 '13 at 18:03

This question came from our site for professional and enthusiast programmers.

find . -type l -exec stat -f '%N -> %Y' {} \+

%N = name, %Y = target of symbolic link.

share|improve this answer


ls -l `find . -xtype l `

while you are in the directory should do the trick. Else, replace . with the directory name. Do man find to set additional options if you like.

share|improve this answer
BSD find doesn't have -xtype, and this doesn't work if the paths have spaces. – user495470 Apr 1 '13 at 21:22
@LauriRanta - sorry, I was away from my Mac and tested this on Linux. Thanks for your more thorough answer! – MattDMo Apr 1 '13 at 21:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.