namei
linux
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 info →Options (4)
-l, --longbooleanDisplay the results in a long-listing format
Example:
namei {{[-l|--long]}} {{path/to/a}} {{path/to/b}} {{path/to/c}}-m, --modesbooleanShow the mode bits of each file type in the style of `ls`
Example:
namei {{[-m|--modes]}} {{path/to/a}} {{path/to/b}} {{path/to/c}}-o, --ownersbooleanShow owner and group name of each file
Example:
namei {{[-o|--owners]}} {{path/to/a}} {{path/to/b}} {{path/to/c}}-n, --nosymlinksbooleanDon't follow symlinks while resolving
Example:
namei {{[-n|--nosymlinks]}} {{path/to/a}} {{path/to/b}} {{path/to/c}}Examples (5)
Resolve the pathnames specified as the argument parameters
namei path/to/a path/to/b path/to/cDisplay the results in a long-listing format
namei [-l|--long] path/to/a path/to/b path/to/cShow the mode bits of each file type in the style of `ls`
namei [-m|--modes] path/to/a path/to/b path/to/cShow owner and group name of each file
namei [-o|--owners] path/to/a path/to/b path/to/cDon't follow symlinks while resolving
namei [-n|--nosymlinks] path/to/a path/to/b path/to/cmade by @shridhargupta | data from tldr-pages