Skip to content

Instantly share code, notes, and snippets.

@OliDM
Created February 10, 2015 14:41
Show Gist options
  • Select an option

  • Save OliDM/a25fd2134dc32a6e5d2e to your computer and use it in GitHub Desktop.

Select an option

Save OliDM/a25fd2134dc32a6e5d2e to your computer and use it in GitHub Desktop.
In Terminal:
This should find all aliases (Apple aliases)
mdfind "kMDItemKind == 'Alias'" -onlyin /path/of/your/repo
For finding all symlinks (symbolic links) you can use:
ls -lR /path/of/your/repo | grep ^l
To only show symlinks in current directory:
ls -la | grep ^l
If you want to view the full path of symlinks:
find /path/of/your/repo -type l
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment