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 -h, --help
58 Display help text and exit.
59
60 -V, --version
61 Print version and exit.
62
64 To be discovered.
65
67 The original namei program was written by Roger Southwick
68 <rogers@amadeus.wr.tek.com>.
69
70 The program was rewritten by Karel Zak Karel Zak <kzak@redhat.com>.
71
73 ls(1), stat(1), symlink(7)
74
76 For bug reports, use the issue tracker at
77 https://github.com/util-linux/util-linux/issues.
78
80 The namei command is part of the util-linux package which can be
81 downloaded from Linux Kernel Archive
82 <https://www.kernel.org/pub/linux/utils/util-linux/>.
83
84
85
86util-linux 2.38.1 2022-08-04 NAMEI(1)