]> git.ipfire.org Git - thirdparty/util-linux.git/blame - misc-utils/namei.c
wall: cleanup MAXHOSTNAMELEN
[thirdparty/util-linux.git] / misc-utils / namei.c
CommitLineData
6dbe3af9
KZ
1/*-------------------------------------------------------------
2
3The namei program
4
5By: Roger S. Southwick
6
7May 2, 1990
8
9
10Modifications by Steve Tell March 28, 1991
11
12usage: namei pathname [pathname ... ]
13
14This program reads it's arguments as pathnames to any type
db8a3e23
KZ
15of Unix file (symlinks, files, directories, and so forth).
16The program then follows each pathname until a terminal
6dbe3af9
KZ
17point is found (a file, directory, char device, etc).
18If it finds a symbolic link, we show the link, and start
19following it, indenting the output to show the context.
20
21This program is useful for finding a "too many levels of
22symbolic links" problems.
23
24For each line output, the program puts a file type first:
25
26 f: = the pathname we are currently trying to resolve
27 d = directory
28 D = directory that is a mount point
29 l = symbolic link (both the link and it's contents are output)
30 s = socket
31 b = block device
32 c = character device
f062c8a6 33 p = FIFO (named pipe)
6dbe3af9
KZ
34 - = regular file
35 ? = an error of some kind
36
37The program prints an informative messages when we exceed
38the maximum number of symbolic links this system can have.
39
40The program exits with a 1 status ONLY if it finds it cannot
41chdir to /, or if it encounters an unknown file type.
42
c07ebfa1 43