标签云

微信群

扫码加入我们

WeChat QR Code


thanks, that worked well. for anyone else trying this one: using the -maxdepth switch really helped speed up the search, since i knew at what depth the links would be.

2018年09月26日00分23秒

Wow, this is exactly what I was looking for. Thanks skymt for the answer and nickf for asking the question :)

2018年09月25日00分23秒

Thanks. Just be careful that presence of a trailing slash or not in the link may alter result. So you may need a find . -lname '*folder?'

2018年09月26日00分23秒

... and for each match, find also what points to that match ! (ex: /a/A -> /some/b -> /particular/folder ... the chain could be even longer)

2018年09月25日00分23秒

This works great on the Mac. Thanks. Found some malicious symlinks on a site that was done by a wordpress hack. really. thanks.

2018年09月26日00分23秒

This would work well for finding all hardlinks to a file. But hardlinks to a directory are a big no-no. The filesystem driver will not let you create such a thing, and if you are masochistic enough to go in and edit the raw partition by hand to create one, it makes many things very unhappy.

2018年09月26日00分23秒

I don't recommend hard links to folders either, but TimeMachine on OS X uses them. E.G: belkadan.com/blog/2011/07/rm-vs-Time-Machine

2018年09月26日00分23秒