namei -om $PWD - follow a pathname until a terminal point is found
laptop:/tmp/t1/t2/t3/t4$ namei -om $PWD
f: /tmp/t1/t2/t3/t4
drwxr-xr-x root root /
drwxrwxrwt root root tmp
drwxr-xr-x teevi www-data t1
drwxrwxr-- teevi www-data t2
drwxr-xr-x teevi www-data t3
drwxr-xr-- teevi www-data t4
f: /tmp/t1/t2/t3/t4
drwxr-xr-x root root /
drwxrwxrwt root root tmp
drwxr-xr-x teevi www-data t1
drwxrwxr-- teevi www-data t2
drwxr-xr-x teevi www-data t3
drwxr-xr-- teevi www-data t4
Comments
Post a Comment