Follows a pathname (which can be a symbolic link) until a terminal point is found (a file/directory/char device etc). This program is useful for finding “too many levels of symbolic links” problems. More information: https://manned.org/namei.
namei path/to/a path/to/b path/to/c
namei --long path/to/a path/to/b path/to/c
ls
:namei --modes path/to/a path/to/b path/to/c
namei --owners path/to/a path/to/b path/to/c
namei --nosymlinks path/to/a path/to/b path/to/c