1NAMEI(1) User Commands NAMEI(1)
2
3
4
6 namei - follow a pathname until a terminal point is found
7
9 namei [options] pathname...
10
12 namei interprets its arguments as pathnames to any type of Unix file
13 (symlinks, files, directories, and so forth). namei then follows each
14 pathname until an endpoint is found (a file, a directory, a device
15 node, etc). If it finds a symbolic link, it shows the link, and starts
16 following it, indenting the output to show the context.
17
18 This program is useful for finding "too many levels of symbolic links"
19 problems.
20
21 For each line of output, namei uses the following characters to
22 identify the file type found:
23
24 f: = the pathname currently being resolved
25 d = directory
26 l = symbolic link (both the link and its contents are output)
27 s = socket
28 b = block device
29 c = character device
30 p = FIFO (named pipe)
31 - = regular file
32 ? = an error of some kind
33
34 namei prints an informative message when the maximum number of symbolic
35 links this system can have has been exceeded.
36
38 -l, --long
39 Use the long listing format (same as -m -o -v).
40
41 -m, --modes
42 Show the mode bits of each file type in the style of ls(1), for
43 example 'rwxr-xr-x'.
44
45 -n, --nosymlinks
46 Don’t follow symlinks.
47
48 -o, --owners
49 Show owner and group name of each file.
50
51 -v, --vertical
52 Vertically align the modes and owners.
53
54 -x, --mountpoints
55 Show mountpoint directories with a 'D' rather than a 'd'.
56
57 -Z, --context
58 Show security context of the file or "?" if not available. The
59 support for security contexts is optional and does not have to be
60 compiled to the namei binary.
61
62 -h, --help
63 Display help text and exit.
64
65 -V, --version
66 Print version and exit.
67
69 To be discovered.
70
72 The original namei program was written by Roger Southwick
73 <rogers@amadeus.wr.tek.com>.
74
75 The program was rewritten by Karel Zak Karel Zak <kzak@redhat.com>.
76
78 ls(1), stat(1), symlink(7)
79
81 For bug reports, use the issue tracker at
82 https://github.com/util-linux/util-linux/issues.
83
85 The namei command is part of the util-linux package which can be
86 downloaded from Linux Kernel Archive
87 <https://www.kernel.org/pub/linux/utils/util-linux/>.
88
89
90
91util-linux 2.39.2 2023-06-14 NAMEI(1)