
例:
$ namei test/test1.txt
出力:

f:パス名
d:ディレクトリ
-:ファイル名
簡単な説明
説明トップ
<strong>namei </strong>interprets its arguments as pathnames to any type of Unix
file (symlinks, files, directories, and so forth). <strong>namei </strong>then
follows each pathname 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 following 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, <strong>namei </strong>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
<strong>namei </strong>prints an informative message when the maximum number of
symbolic links this system can have has been exceeded.
Code language: HTML, XML (xml)
nameiコマンドの使用
1.左マージンに揃えます(-vオプションを使用)
$ namei -v test/test1.txt
出力:

2.所有者とグループを表示します(-oオプションを使用)
$ namei -o test/test1.txt
出力:

これは、このフォルダとファイルの両方がubuntuによって所有されていることを証明しています。
3.長いリストを表示する(-lオプションを使用)
$ namei -l test/test1.txt
出力:

このオプションを使用すると、所有者のより多くの特権が表示されます。
所有者の権限のみを表示したい場合は、-mオプションを使用しましょう:
$ namei -m test/test1.txt
出力:

結論
Linuxでnameiコマンドを使用する方法を説明しました。
もう1つの興味深い記事は次のとおりです。FortiClientVPNをインストールする簡単な方法