Powered by Blogger.

Saturday, December 26, 2009

Tracing symbol links


Here is an easy way to trace the endpoint of a cascaded symbolic link- for example: /dev/cdrom:
$ namei /dev/cdrom
f: /dev/cdrom
d /
d dev
l cdrom -> sr0
b sro
.......where, f:is the path name we are trying currently to resolve, d means directory, l means symbolic link and b means a block device.check man namei for more details.

0 comments

Post a Comment