]> git.ipfire.org Git - thirdparty/util-linux.git/blame - misc-utils/namei.c
col: getwchar() errors shouldn't be hidden
[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
15of Unix file (symlinks, files, directories, and so forth).
16The program then follows each pathname until a terminal
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
33 - = regular file
34 ? = an error of some kind
35
36The program prints an informative messages when we exceed
37the maximum number of symbolic links this system can have.
38
39The program exits with a 1 status ONLY if it finds it cannot
40chdir to /, or if it encounters an unknown file type.
41
c07ebfa1 42