Skip site navigation (1)Skip section navigation (2)
Date:      23 Feb 2020 18:15:13 -0500
From:      "John Levine" <johnl@iecc.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: rm | Cleaning up recycle bin
Message-ID:  <20200223231514.849AF14D7C1C@ary.qy>
In-Reply-To: <20200223151207928780007@bob.proulx.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <20200223151207928780007@bob.proulx.com>,
>Ernie Luzar wrote:
>> To write zeros to existing file before removing that file
>> 
>> dd if=/dev/zero of=/path/filename bs=1m ; rm /path/filename

Ugh, no.  If you want to erase the contents of a file before deleting it,
use security/wipe from the ports collection.

If you just want to delete a file and get its space back, rm is all you need.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200223231514.849AF14D7C1C>