How to use Mac Finder to list all aliases in a folder

前端 未结 2 1846
忘掉有多难
忘掉有多难 2020-12-17 01:23

I downloaded a repository from Bitbucket.org as a zip file and unzipped it using iZip to my Mac. Xcode found many compile errors because the zip or unzip did not preserve a

2条回答
  •  春和景丽
    2020-12-17 01:31

    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
    

提交回复
热议问题