From owner-freebsd-questions@FreeBSD.ORG Fri Feb 27 04:14:48 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 22D0216A4CE for ; Fri, 27 Feb 2004 04:14:48 -0800 (PST) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8308043D1F for ; Fri, 27 Feb 2004 04:14:47 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i1RCEfuV048848 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 27 Feb 2004 12:14:42 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i1RCEfIj048847; Fri, 27 Feb 2004 12:14:41 GMT (envelope-from matthew) Date: Fri, 27 Feb 2004 12:14:41 +0000 From: Matthew Seaman To: Tom Munro Glass Message-ID: <20040227121441.GE46716@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Tom Munro Glass , freebsd-questions@freebsd.org References: <200402271712.25786.gentoo@tmgcon.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RpqchZ26BWispMcB" Content-Disposition: inline In-Reply-To: <200402271712.25786.gentoo@tmgcon.com> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: cp options X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Feb 2004 12:14:48 -0000 --RpqchZ26BWispMcB Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 27, 2004 at 05:12:24PM +1300, Tom Munro Glass wrote: > Linux cp has a --link option that makes hard links instead of copies of= =20 > non-directories. The FreeBSD cp doesn't appear to have that option. >=20 > Is there a way of achieving this? Yes. Use find(1)/cpio(1) -- so, to create a 'link tree' of your entire home directory under /tmp, you would do: % cd ${HOME} % find . -print | cpio -pvdl /tmp That assumes that ${HOME} and /tmp are on the same device, which is probably not true, but you get the general idea. Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --RpqchZ26BWispMcB Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAPzSxdtESqEQa7a0RApjbAKCCLg3p31RTLnua3BBSaWt4EU6X8wCfVXgt rGQ48ST7tGC+rh8CgQmazYc= =WkB5 -----END PGP SIGNATURE----- --RpqchZ26BWispMcB--