From owner-freebsd-questions@FreeBSD.ORG Fri Nov 12 08:39:07 2010 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 D96D8106566C for ; Fri, 12 Nov 2010 08:39:07 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms16-1.1blu.de (ms16-1.1blu.de [89.202.0.34]) by mx1.freebsd.org (Postfix) with ESMTP id 92CB38FC1D for ; Fri, 12 Nov 2010 08:39:07 +0000 (UTC) Received: from [193.31.11.193] (helo=current.Sisis.de) by ms16-1.1blu.de with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1PGpA1-0002LP-Jk for freebsd-questions@freebsd.org; Fri, 12 Nov 2010 09:39:05 +0100 Received: from current.Sisis.de (current [127.0.0.1]) by current.Sisis.de (8.14.3/8.14.3) with ESMTP id oAC8d8uR002343 for ; Fri, 12 Nov 2010 09:39:08 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by current.Sisis.de (8.14.3/8.14.3/Submit) id oAC8d8Ip002342 for freebsd-questions@freebsd.org; Fri, 12 Nov 2010 09:39:08 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: current.Sisis.de: guru set sender to guru@unixarea.de using -f Date: Fri, 12 Nov 2010 09:39:08 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Message-ID: <20101112083907.GA2322@current.Sisis.de> References: <20101111200252.GA1350@tiny.Sisis.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 8.0-CURRENT (i386) User-Agent: Mutt/1.5.19 (2009-01-05) X-Con-Id: 51246 X-Originating-IP: 193.31.11.193 Subject: Re: how to overwrite the content of a file X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Nov 2010 08:39:07 -0000 El día Thursday, November 11, 2010 a las 02:16:33PM -0600, Adam Vande More escribió: > > What is the best method to overwrite the blocks of a given file with > > bytes of 0x00, i.e. not to O_TRUNC away the blocks to the freelist of the > > file system, but overwrite the old blocks? > > ... > > Well there is "rm -P" although I'm not sure that accomplished exactly what > you are looking for. Yes, thanks. This is exactly what I need. matthias > > -- > Adam Vande More -- Matthias Apitz t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.unixarea.de/