From owner-freebsd-questions@FreeBSD.ORG Tue May 22 20:12:34 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5863E10656EA for ; Tue, 22 May 2012 20:12:34 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id D48F08FC12 for ; Tue, 22 May 2012 20:12:33 +0000 (UTC) Received: by werg1 with SMTP id g1so5453267wer.13 for ; Tue, 22 May 2012 13:12:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=l0VtB3fDRpqzi228QrnbP3QMIQ/RMQN146MB702sR1g=; b=lrbfXlb8KIRNUsE6296QcQdrUYlcBcjt+hWZ7GkXv8RlrmJZSuC1ua43+7lwplCEBC 6Tf/gvbeQfoHtbuAbvEIjcZjHsMvJMnR2MLGpmr3GuCCras9cqwQJub9I4xaB/VGiceg TfGgZt42aP9H95g9GlQ4cTHuGSVbbEwvZudOI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=l0VtB3fDRpqzi228QrnbP3QMIQ/RMQN146MB702sR1g=; b=Rtg0R7ODbFjIBERoXx8UWbGexXY3qxVnXomTl60bmsVequMZ9Nis+1xYtsT7IJGOsO gqY5/YLyFyiYwztKz+l+C8e186SeBWkHVhNdLIvXpxmnSNA14zlWoXuXu8bY/4w2Ogun LIKvVUgXHCnP39E9BIR+jiH1XurHBfBztpsgdoaoUyukKDc+w4x80vyPBHUBBe4stQTv AFwFkJBQkiD3wmgF1rVn4WmUEH2Fgin+X4vBLRXx5blYGWpPfN/Kg2UraNkI0ewV0FMr UoGalXhbP4Fwb8KN/v3/BxyYlvciVGefc/GvHv+jtDAqnF8SmR2AQggCYF+vuWANuF+q 7owQ== Received: by 10.180.93.38 with SMTP id cr6mr37739075wib.16.1337717551856; Tue, 22 May 2012 13:12:31 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.85.202 with HTTP; Tue, 22 May 2012 13:12:01 -0700 (PDT) In-Reply-To: <4FBBF1B1.4050706@dreamchaser.org> References: <201205181149.q4IBndvU028665@hera.homer.att.com> <4FB64022.6010206@bananmonarki.se> <4FBB4B8C.3000806@bananmonarki.se> <4FBBCF11.3040007@dreamchaser.org> <4FBBF1B1.4050706@dreamchaser.org> From: Eitan Adler Date: Tue, 22 May 2012 13:12:01 -0700 Message-ID: To: freebsd@dreamchaser.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQly/QOgjUAOEn3IGTbocEAXctoPa/vzB/gAuKS0p/SH5bwSCK6ubhys9NjndM5n4XQIJLkj Cc: freebsd-questions@freebsd.org Subject: Re: hard link identification X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 May 2012 20:12:34 -0000 On 22 May 2012 13:06, Gary Aitken wrote: > Is there any way to tell if something is a hard link, other than > =C2=A0ls -i of relevant files and seeing that the inode is the same? > or a better way? Hard links are not special. You can't tell something is a "hard link" because normal files are exactly the same. You can use stat(1) to see how many hard links point to a file though. --=20 Eitan Adler