From owner-freebsd-questions@freebsd.org Mon Mar 6 17:44:03 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C6E77CFA748 for ; Mon, 6 Mar 2017 17:44:03 +0000 (UTC) (envelope-from jkeen@verizon.net) Received: from vms173017pub.verizon.net (vms173017pub.verizon.net [206.46.173.17]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A680E14B7 for ; Mon, 6 Mar 2017 17:44:03 +0000 (UTC) (envelope-from jkeen@verizon.net) Received: from vz-proxy-m004.mx.aol.com ([64.236.83.6]) by vms173017.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0OME00I1VJSDU730@vms173017.mailsrvcs.net> for freebsd-questions@freebsd.org; Mon, 06 Mar 2017 10:43:26 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=dNPWoKRb c=1 sm=1 tr=0 a=qxlt2c29UiMP0p6CwArSWg==:117 a=N659UExz7-8A:10 a=xc8lJNUndLsA:10 a=6Iz7jQTuP9IA:10 a=vvSuw2eaMjXKoWdXnpQA:9 a=pILNOxqGKmIA:10 Received: by 71.246.118.249 with SMTP id 6d2879d6; Mon, 06 Mar 2017 16:43:26 GMT Subject: Re: Is there a namei utility in FreeBSD? To: freebsd-questions@freebsd.org References: <984464e3-8f4e-d15f-00a8-e341a81d7ab5@verizon.net> <275628a8-8f31-e5b1-9669-62e3ca3f15d6@citrin.ru> From: James E Keenan Message-id: <851e783f-f1b9-368b-8dd1-9f99d33dcc38@verizon.net> Date: Mon, 06 Mar 2017 11:43:25 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-version: 1.0 In-reply-to: <275628a8-8f31-e5b1-9669-62e3ca3f15d6@citrin.ru> Content-type: text/plain; charset=windows-1252; format=flowed Content-transfer-encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 17:44:03 -0000 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