View permission / owner of full directory tree

command linefilesls

I remember doing someting like "XXX /home/user/dir/child/file" and it returned the owner and/or permission of:

/home
/home/user
/home/user/dir
/home/user/child
/home/user/child/file

But I don't remember what this command was. Anybody any idea?

Best Answer

The command could have been:

namei -m /home/user/dir/child/file