oreilly.comSafari Books Online.Conferences.


Linux in a Nutshell

This directory of Linux commands is from Linux in a Nutshell, 5th Edition.

Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.

Buy it now, or read it online on Safari Bookshelf.


namei [options] pathname [pathname . . .]

Follow a pathname until a terminal point is found (e.g., a file, directory, char device, etc.). If namei finds a symbolic link, it shows the link and starts following it, indenting the output to show the context. namei prints an informative message when the maximum number of symbolic links has been exceeded, making it helpful for resolving errors resulting from too many levels of links.



Show mode bits of each file type in the style of ls (e.g., "rwxr-xr-x").


Show mountpoint directories with a D rather than a d.

File-type characters

For each line of output, namei prints the following characters to identify the file types found:


A regular file.


An error of some kind.


A block device.


A character device.


A directory.


The pathname namei is currently trying to resolve.


A symbolic link (both the link and its contents are output).


A socket.

Linux Resources
  • Linux Online
  • The Linux FAQ
  • Linux Kernel Archives
  • Kernel Traffic

  • Sponsored by: