Date: Mon, 06 Mar 2017 11:43:25 -0500 From: James E Keenan <jkeen@verizon.net> To: freebsd-questions@freebsd.org Subject: Re: Is there a namei utility in FreeBSD? Message-ID: <851e783f-f1b9-368b-8dd1-9f99d33dcc38@verizon.net> In-Reply-To: <275628a8-8f31-e5b1-9669-62e3ca3f15d6@citrin.ru> References: <984464e3-8f4e-d15f-00a8-e341a81d7ab5@verizon.net> <275628a8-8f31-e5b1-9669-62e3ca3f15d6@citrin.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On 03/06/2017 11:02 AM, Anton Yuzhaninov wrote: > On 03/06/17 09:12, James E Keenan wrote: >> In Linux, there is a userland utility 'namei' which enables a user to >> "follow a pathname until a terminal point is found". Invoking it on, >> say, a symlink produces output like this: > > If you need to find a target of symlink (or symlink chain) you can use > realpath(1). Thanks for mentioning that. However, while the example I gave was that of a symlink, and while both namei and realpath are good for displaying information about symlinks, my central question was whether there was an equivalent to namei in FreeBSD. namei identifies the nature of each component in the resolved path; realpath does not. Thank you very much. Jim Keenan
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?851e783f-f1b9-368b-8dd1-9f99d33dcc38>