如何快速找到递归符号链接?

如何快速找到递归符号链接?

我遇到索引程序运行时间比预期长得多的问题。我想排除递归符号链接的可能性。我怎样才能找到在某种程度上递归的符号链接?

答案1

这个相关问题,提供了一种使用以下命令识别递归符号链接的方法find

$ find -L . 
.
./a
./a/b
./a/b/c
./a/b/c/d
find: File system loop detected; `./a/b/c/d/e' is part of the same file system loop as `./a/b'.
find: `./a/b/e': Too many levels of symbolic links

相关内容