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 iden‐
22 tify 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 -V, --version
58 Display version information and exit.
59
60 -h, --help
61 Display help text and exit.
62
64 The original namei program was written by Roger Southwick
65 <rogers@amadeus.wr.tek.com>.
66
67 The program was rewritten by Karel Zak <kzak@redhat.com>.
68
70 To be discovered.
71
73 ls(1), stat(1), symlink(7)
74
76 The namei command is part of the util-linux package and is available
77 from https://www.kernel.org/pub/linux/utils/util-linux/.
78
79
80
81util-linux June 2011 NAMEI(1)