NAMEI(1)

๐Ÿ’– NAMEI ๐Ÿ’–

okay so bestie, welcome to namei โ€” a lil User Commands baddie from section 1 of the manual, and she is literally here to follow a pathname until a terminal point is found. yes queen. let's go โœจ


๐ŸŒธ NAME ๐ŸŒธ

namei โ€” follow a pathname until a terminal point is found ๐ŸŽ€


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

namei [options] pathname...

โœจ DESCRIPTION โœจ

so namei takes its arguments and treats them as pathnames pointing at any type of Unix file โ€” symlinks, files, directories, all of it, the whole buffet ๐Ÿ“. then it follows each pathname until an endpoint shows up (a file, a directory, a device node, etc). and if it bumps into a symbolic link? it shows you the link, then starts following it, indenting the output so you can see the context. main character behavior honestly.

this program is useful for finding "too many levels of symbolic links" problems. like when your symlink situation is giving infinite loop energy ๐Ÿ’€.

for each line of output, namei uses these characters to identify the file type it found:

  • f: โ€” the pathname currently being resolved
  • d โ€” directory
  • l โ€” symbolic link (both the link and its contents are output)
  • s โ€” socket
  • b โ€” block device
  • c โ€” character device
  • p โ€” FIFO (named pipe)
  • - โ€” regular file
  • ? โ€” an error of some kind

and when the maximum number of symbolic links this system can have has been exceeded, namei prints an informative message. she's polite about it ๐Ÿซถ.


๐Ÿ‘‘ OPTIONS ๐Ÿ‘‘

  • -l, --long โ€” use the long listing format (same as -m -o -v). the "give me everything" button fr fr ๐Ÿ’…
  • -m, --modes โ€” show the mode bits of each file type in the style of ls(1), for example 'rwxr-xr-x'. permission glow-up โœจ
  • -n, --nosymlinks โ€” Don't follow symlinks. boundaries, bestie ๐ŸŽ€
  • -o, --owners โ€” show owner and group name of each file. who is she ๐Ÿ‘€
  • -v, --vertical โ€” vertically align the modes and owners. aesthetic alignment, no cap ๐ŸŒˆ
  • -x, --mountpoints โ€” show mountpoint directories with a 'D' rather than a 'd'. capital D for drama ๐Ÿ‘‘
  • -Z, --context โ€” show security context of the file or "?" if not available. > heads up bestie: the support for security contexts is optional and does not have to be compiled to the namei binary. so if it's not there, it's not you, it's the build ๐Ÿ™ˆ
  • -h, --help โ€” display help text and exit. the "explain pls" flag ๐Ÿ’–
  • -V, --version โ€” display version and exit. her little birth certificate ๐Ÿ“œ

๐Ÿ’€ BUGS ๐Ÿ’€

To be discovered.

(yeah. that's it. iconic, honestly. she's flawless until proven otherwise โœจ)


๐Ÿซถ AUTHORS ๐Ÿซถ

the original namei program was written by Roger Southwick <rogers@amadeus.wr.tek.com>.

the program was rewritten by Karel Zak <kzak@redhat.com>. two icons, one legacy ๐Ÿ’œ


๐ŸŒˆ SEE ALSO ๐ŸŒˆ

ls(1), stat(1), symlink(7)


๐Ÿ› REPORTING BUGS ๐Ÿ›

for bug reports, use the issue tracker <https://github.com/util-linux/util-linux/issues>. tell her what's wrong, she can take it ๐ŸŽ€


โญ AVAILABILITY โญ

the namei command is part of the util-linux package which can be downloaded from Linux Kernel Archive <https://www.kernel.org/pub/linux/utils/util-linux/>. go get her ๐Ÿ‘‘


and that's the whole page bestie!! this was util-linux version 2.42.4, dated 2026-09-21, and it's the NAMEI(1) manual page โ€” slay, periodt ๐Ÿ’…โœจ๐Ÿฆ‹

๐Ÿ“ฆ where this page comes from
  • arch rolling: util-linux 2.42.4-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause-UC AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND ISC AND LGPL-2.1-or-later AND LicenseRef-PublicDomain
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms