I'm working on a HP-UX system and I want to find if there are any circular symbolic links.
So far I'm using the command:
ls -lrt `find ./ -follow -type l`
But it's only doing ls -lrt
on current directory as result.
What command should I use to find all circular symbolic links in a system?
ls -lrt
? long format, sort by time modified, reversed? Did you mean to tag linux? Because on a Mac, these options don't make sense.osx
, I didn't completely ask without a reason. There is btw no-follow
argument tofind
in Unix — I assume that's GNU only.