Считайте Symlink Dir Bash
find $directory -type d -printf d -o -type l -printf l -o -type f -links +1 -printf h -o -type f -printf f
Distinct Dove
find $directory -type d -printf d -o -type l -printf l -o -type f -links +1 -printf h -o -type f -printf f