namei

最後更新: 2021-11-12

namei

Display all the permissions on a path

If it finds a symbolic link, it shows the link, and starts following it.

 


Usage

 

namei [options] pathname...

-o, --owners       # Show owner and group name of each file.

-m, --modes       # Show the mode bits of each file type in the style of ls(1)

-v, --vertical       # Vertically align the modes and owners.

-l, --long            # Use the long listing format (same as -m -o -v).

i.e.

namei -l /home/vhosts/IP

f: /home/vhosts/IP
dr-xr-xr-x root root /
drwxr-xr-x root root home
drwxr-xr-x root root vhosts
drwxr-xr-x root root IP

說明

f: = the pathname currently being resolved