namei
file managementLinux/Unix
The namei command is one of the most frequently used commands in Linux/Unix-like operating systems. namei Follow a pathname until a terminal point is found
Quick Reference
Command Name:
namei
Category:
file management
Platform:
Linux/Unix
Basic Usage:
namei [options] [arguments]
Common Use Cases
Syntax
namei [options] pathname [pathname...]
Options
Option | Description |
---|---|
-h , --help |
Display help text and exit |
-V , --version |
Display version information and exit |
-x , --mountpoints |
Show mountpoint details |
-m , --modes |
Show the mode bits of each file |
-o , --owners |
Show owner and group name of each file |
-l , --long |
Use long listing format (combines -m and -o) |
-n , --nosymlinks |
Don't follow symlinks |
-e , --nonexistent |
Also examine nonexistent files |
Examples
How to Use These Examples
The examples below show common ways to use the namei
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.
# Basic Examples Basic
namei /usr/bin/python