From owner-freebsd-questions@freebsd.org Sun Feb 23 23:15:23 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 9BC7524BCA8 for ; Sun, 23 Feb 2020 23:15:23 +0000 (UTC) (envelope-from johnl@iecc.com) Received: from gal.iecc.com (gal.iecc.com [IPv6:2001:470:1f07:1126:0:43:6f73:7461]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gal.iecc.com", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48Qgyx4zHvz4fp6 for ; Sun, 23 Feb 2020 23:15:21 +0000 (UTC) (envelope-from johnl@iecc.com) Received: (qmail 42817 invoked from network); 23 Feb 2020 23:15:15 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple; d=iecc.com; h=date:message-id:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding; s=a73d.5e530783.k2002; bh=OAFtvbOq4GxGkKMS+QWeGDXc/AB55cNgqhiQsihNLkc=; b=jaK9PsD149eTkXjFdThvD6+XY8GvMfTlNqn15hok/YLIyvE7E5ds3Of6MS2o6SG/NWWg4wKwzsj4nmhLAXVjaa7Y1Kgqh+OVyPRlKmj2jBWUFXdZsu9i7Vv6sMiN+T9SbOuxcPnnjn+JeFvAzsIL9wkSEOH7PUPiI2l8SnsqMKkx+L+TRSY5rMaRsiz4xx7LdAjKNRc4NMWGHm7VTQT5avLpWJKvPzW1jJb6Q6r/mft1JQ8RTWmfUS7CCfN5oIU1 Received: from ary.qy ([IPv6:2001:470:1f07:1126::78:696d:6170]) by imap.iecc.com ([IPv6:2001:470:1f07:1126::78:696d:6170]) with ESMTP via TCP6; 23 Feb 2020 23:15:14 -0000 Received: by ary.qy (Postfix, from userid 501) id 849AF14D7C1C; Sun, 23 Feb 2020 18:15:13 -0500 (EST) Date: 23 Feb 2020 18:15:13 -0500 Message-Id: <20200223231514.849AF14D7C1C@ary.qy> From: "John Levine" To: freebsd-questions@freebsd.org Subject: Re: rm | Cleaning up recycle bin In-Reply-To: <20200223151207928780007@bob.proulx.com> Organization: Taughannock Networks X-Headerized: yes Mime-Version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8bit X-Rspamd-Queue-Id: 48Qgyx4zHvz4fp6 X-Spamd-Bar: -------- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=iecc.com header.s=a73d.5e530783.k2002 header.b=jaK9PsD1; dmarc=pass (policy=none) header.from=iecc.com; spf=pass (mx1.freebsd.org: domain of johnl@iecc.com designates 2001:470:1f07:1126:0:43:6f73:7461 as permitted sender) smtp.mailfrom=johnl@iecc.com X-Spamd-Result: default: False [-8.14 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[iecc.com:s=a73d.5e530783.k2002]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_MED(-2.00)[iecc.com.dwl.dnswl.org : 127.0.4.2]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:1f07:1126::/64]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCPT_COUNT_ONE(0.00)[1]; HAS_ORG_HEADER(0.00)[]; IP_SCORE(-3.64)[ip: (-9.90), ipnet: 2001:470::/32(-4.65), asn: 6939(-3.58), country: US(-0.05)]; MV_CASE(0.50)[]; DKIM_TRACE(0.00)[iecc.com:+]; DMARC_POLICY_ALLOW(-0.50)[iecc.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Feb 2020 23:15:23 -0000 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.