NAMEI(1) General Commands Manual NAMEI(1)NAME
namei - follow a pathname until a terminal point is found
SYNOPSIS
namei [-mx] pathname [ pathname ... ]
DESCRIPTION
Namei uses its arguments as pathnames to any type of Unix file (symlinks, files, directories, and so forth). Namei then follows each path-
name until a terminal point is found (a file, directory, char device, etc). If it finds a symbolic link, we show the link, and start fol-
lowing it, indenting the output to show the context.
This program is useful for finding a "too many levels of symbolic links" problems.
For each line output, namei outputs a the following characters to identify the file types found:
f: = the pathname we are currently trying to resolve
d = directory
l = symbolic link (both the link and it's contents are output)
s = socket
b = block device
c = character device
- = regular file
? = an error of some kind
Namei prints an informative message when the maximum number of symbolic links this system can have has been exceeded.
OPTIONS -x Show mount point directories with a 'D', rather than a 'd'.
-m Show the mode bits of each file type in the style of ls(1), for example 'rwxr-xr-x'.
AUTHOR
Roger Southwick (rogers@amadeus.wr.tek.com)
BUGS
To be discovered.
CAVEATS
Namei will follow an infinite loop of symbolic links forever. To escape, use SIGINT (usually ^C).
SEE ALSO ls(1), stat(1)
Local NAMEI(1)
Check Out this Related Man Page
NAMEI(1) User Commands NAMEI(1)NAME
namei - follow a pathname until a terminal point is found
SYNOPSIS
namei [options] pathname...
DESCRIPTION
namei uses its arguments as pathnames to any type of Unix file (symlinks, files, directories, and so forth). namei then follows each path-
name until an endpoint is found (a file, a directory, a device node, etc). If it finds a symbolic link, it shows the link, and starts fol-
lowing it, indenting the output to show the context.
This program is useful for finding "too many levels of symbolic links" problems.
For each line of output, namei uses the following characters to identify the file type found:
f: = the pathname currently being resolved
d = directory
l = symbolic link (both the link and its contents are output)
s = socket
b = block device
c = character device
p = FIFO (named pipe)
- = regular file
? = an error of some kind
namei prints an informative message when the maximum number of symbolic links this system can have has been exceeded.
OPTIONS -l, --long
Use the long listing format (same as -m -o -v).
-m, --modes
Show the mode bits of each file type in the style of ls(1), for example 'rwxr-xr-x'.
-o, --owners
Show owner and group name of each file.
-n, --nosymlinks
Don't follow symlinks.
-v, --vertical
Vertically align the modes and owners.
-x, --mountpoints
Show mountpoint directories with a 'D' rather than a 'd'.
-h, --help
Output help text and exit.
-V, --version
Output version information and exit.
AUTHOR
The original namei program was written by Roger Southwick <rogers@amadeus.wr.tek.com>.
The program was re-written by Karel Zak <kzak@redhat.com>.
BUGS
To be discovered.
SEE ALSO ls(1), stat(1)AVAILABILITY
The namei command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
util-linux June 2011 NAMEI(1)
I have a directory in system that has a symbolic link to itself. Can't rm (device busy error), mv (device busy error), etc. Cannot seem to access directory. Trying to see process using file (fuser) returns "too many levels of symbolic links)
Any help on removing this would be appreciated.... (1 Reply)
Hi
I am trying to determine the access to unix devices. I found the follow access description which I have been told is a symbolic link and is not the actual file. I was also told that all symbolic links will have rwxrwxrwx access.
kmem: lrwxrwxrwx 1 root 27 May 28 16:06 /dev/kmem ->... (2 Replies)
Hi,
Is there a limit to the number of symbolic links you can have?
I tried to vi the symbolic link relating to a file and got the following error:
"filename" Too many levels of symbolic links
There is only one symbolic link to one file in this case, but there are >2000 other links to... (2 Replies)
Hello,
I got an IHS 6.1 installed and want to publish a directory with an index of files, directories and symlinks / symbolic links / soft links, last ones being created with the usual Unix command "ln -s .... ....".
In httpd.conf I've tried following for that directory:
Options Indexes... (1 Reply)
ls -l shows the number of links for each file. Is there a command that will show the link sources for a specific file? Running find on the entire filesystem and doing a little Perl "magic" is the only method I'm aware of. I'm running SunOS 5.8.
Thanks. (6 Replies)
I tried looking up combinations of the keywords "infinite loop links" in google before causing a recurring post here... but alas, I couldn't find much.
Cause: I've created an infinite loop, in a way, of directories.
Problem:
I'm not sure if this will crash a backup program (trying to... (1 Reply)