find command error

Executing "find /abc -follow -ls" the message "find: cycle detected for /abc/def/ghi/

What does this mean?

Thanks...

It means that somewhere below /abc/def/ghi there's a link back to this directory. A dumb recursive utility would probably enter a endless loop here following that link, find however can (and should) detect and avoid such loops. But it still warns the user that it's there.

Use -type or -noleaf options in find command

 
find -type f || -type d /abc 

If its not working try to off the leaf using the following command

find -noleaf  /abc