From owner-freebsd-questions Thu Jan 30 1:28:17 2003 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 600CD37B401 for ; Thu, 30 Jan 2003 01:28:16 -0800 (PST) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FDA743F9B for ; Thu, 30 Jan 2003 01:28:15 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a168.otenet.gr [212.205.215.168]) by mailsrv.otenet.gr (8.12.6/8.12.6) with ESMTP id h0U9SC2D017975; Thu, 30 Jan 2003 11:28:13 +0200 (EET) Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.12.6/8.12.6) with ESMTP id h0U9SC1M039105; Thu, 30 Jan 2003 11:28:12 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.12.6/8.12.6/Submit) id h0U9SCYs039104; Thu, 30 Jan 2003 11:28:12 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 30 Jan 2003 11:28:12 +0200 From: Giorgos Keramidas To: Darren Pilgrim Cc: questions@FreeBSD.org Subject: Re: Why no /dev/one? Message-ID: <20030130092812.GB1262@gothmog.gr> References: <3E38E15C.7080302@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3E38E15C.7080302@pantherdragon.org> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2003-01-30 00:25, Darren Pilgrim wrote: > Why isn't there a /dev/one device to provide an infinite number of > all-ones bytes? Because it's easy to get any sequence of equal bytes by using just /dev/zero and tr(1). Try this command and check the output of hd(1) :-) $ dd if=/dev/zero bs=512 count=1 | tr '\0' '\777' | hd - Giorgos To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message