From owner-freebsd-questions@freebsd.org Mon Mar 6 15:13:12 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 12A8BCFB2C0 for ; Mon, 6 Mar 2017 15:13:12 +0000 (UTC) (envelope-from jkeen@verizon.net) Received: from vms173013pub.verizon.net (vms173013pub.verizon.net [206.46.173.13]) (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 EEEE91E2F for ; Mon, 6 Mar 2017 15:13:11 +0000 (UTC) (envelope-from jkeen@verizon.net) Received: from vz-proxy-m003.mx.aol.com ([64.236.83.11]) by vms173013.mailsrvcs.net (Oracle Communications Messaging Server 7.0.5.32.0 64bit (built Jul 16 2014)) with ESMTPA id <0OME00GSTCSFMW50@vms173013.mailsrvcs.net> for freebsd-questions@freebsd.org; Mon, 06 Mar 2017 08:12:15 -0600 (CST) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.2 cv=ZMenoTzb c=1 sm=1 tr=0 a=QygMq2WHlv4bY/JTZumiuw==:117 a=IkcTkHD0fZMA:10 a=xc8lJNUndLsA:10 a=6Iz7jQTuP9IA:10 a=bQhUs3m2tVPh7ukjBmwA:9 a=QEXdDO2ut3YA:10 Received: by 71.246.118.249 with SMTP id 619473d5; Mon, 06 Mar 2017 14:12:15 GMT To: freebsd-questions@freebsd.org From: James E Keenan Subject: Is there a namei utility in FreeBSD? Message-id: <984464e3-8f4e-d15f-00a8-e341a81d7ab5@verizon.net> Date: Mon, 06 Mar 2017 09:12:14 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-version: 1.0 Content-type: text/plain; charset=utf-8; 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 15:13:12 -0000 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: ##### $ namei /usr/bin/bundledoc f: /usr/bin/bundledoc d / d usr d bin l bundledoc -> ../share/texlive/texmf-dist/scripts/bundledoc/bundledoc d .. d share d texlive d texmf-dist d scripts d bundledoc - bundledoc ##### Is there an equivalent utility in FreeBSD? In 10.3 and 11.0, I could only find namei in man 9, which is C-level facility, not an executable utility. Thank you very much. Jim Keenan