From owner-freebsd-questions@freebsd.org Mon Mar 6 16:02:21 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 3306BCFB8F9 for ; Mon, 6 Mar 2017 16:02:21 +0000 (UTC) (envelope-from citrin+bsd@citrin.ru) Received: from hz.citrin.ru (hz.citrin.ru [IPv6:2a01:4f8:d16:10c3::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F18101D30 for ; Mon, 6 Mar 2017 16:02:20 +0000 (UTC) (envelope-from citrin+bsd@citrin.ru) Received: from x220.lan (unknown [IPv6:2601:18a:c301:8eee:f146:79c4:3f83:6000]) by hz.citrin.ru (Postfix) with ESMTPSA id 1C55029A4C0 for ; Mon, 6 Mar 2017 16:02:16 +0000 (UTC) Subject: Re: Is there a namei utility in FreeBSD? To: freebsd-questions@freebsd.org References: <984464e3-8f4e-d15f-00a8-e341a81d7ab5@verizon.net> From: Anton Yuzhaninov Message-ID: <275628a8-8f31-e5b1-9669-62e3ca3f15d6@citrin.ru> Date: Mon, 6 Mar 2017 11:02:15 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <984464e3-8f4e-d15f-00a8-e341a81d7ab5@verizon.net> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrin.ru; s=s0; t=1488816137; bh=xM6JjGveB+wvJgpY4g6ekf532y9VWlnTo683X/GpDko=; h=Subject:To:References:From:Message-ID:Date:MIME-Version:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=F4tiQPtQcDBysOE4xTiaN4UUdIbwB32XYUNNdWvhK5SzHrTIDIJvUR5sH/6kfasQC1qSs+zmZBW6NuGLPe4JCOIFYnQS9adDuAoFS8EAXDEA4J/Ma2osjsn5Lx3NzVpYc1Etukt5qPIazF13vZ8D9jlWmVKKyxcDTQMp4KOGACs= 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 16:02:21 -0000 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).