namei

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>.

Debian Debian
RUN apt-get update && \ apt-get install -y util-linux
Ubuntu
RUN apt-get update && \ apt-get install -y util-linux
Alpine
RUN apk add util-linux
Arch Arch Linux
RUN pacman -S --noconfirm util-linux
image/svg+xml Kali Linux
RUN apt-get update && \ apt-get install -y util-linux
CentOS
RUN yum install -y util-linux
Fedora
RUN dnf install -y util-linux
Raspbian
RUN apt-get update && \ apt-get install -y util-linux
click the source code to copy install namei on any operating system with command-not-found.com