From owner-freebsd-questions@freebsd.org Sun Feb 23 13:17:00 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 4B61623C1A3 for ; Sun, 23 Feb 2020 13:17:00 +0000 (UTC) (envelope-from bsduser@cloudzeeland.nl) Received: from poseidon.cloudzeeland.nl (cloudzeeland.xs4all.nl [83.161.133.58]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "cloudzeeland.nl", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 48QQhW0DJQz4V7F for ; Sun, 23 Feb 2020 13:16:58 +0000 (UTC) (envelope-from bsduser@cloudzeeland.nl) Received: from poseidon.cloudzeeland.nl (cloudzeeland.nl [10.10.10.36]) by poseidon.cloudzeeland.nl (Postfix) with ESMTP id 698CD100; Sun, 23 Feb 2020 14:16:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cloudzeeland.nl; s=cloud; t=1582463817; bh=v9AnRwwk820h4ifklMxXj5mOSQzrImqLyaTSCatJJpE=; h=Subject:To:References:From:Date:In-Reply-To; b=lNCDNyBHg1hY6qmSBRdZTNBTHIaDEW6Y3+Sl/WuAjeQ7x6cMRop9dcWfc9M25wUbD 4XdshNySOXqoP844Buaz5TKbWWBMSE7aDvjfxyh0ClDHCi2skb7VorLcEgQbbLEtn6 A07SgXTiOe9thDeZ+z/mwKc78mwpXi99SDmxsHck= Received: from [10.10.10.34] (pion1.rpicloud.nl [82.176.127.71]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by poseidon.cloudzeeland.nl (Postfix) with ESMTPSA id F007BFF; Sun, 23 Feb 2020 14:16:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cloudzeeland.nl; s=cloud; t=1582463817; bh=v9AnRwwk820h4ifklMxXj5mOSQzrImqLyaTSCatJJpE=; h=Subject:To:References:From:Date:In-Reply-To; b=lNCDNyBHg1hY6qmSBRdZTNBTHIaDEW6Y3+Sl/WuAjeQ7x6cMRop9dcWfc9M25wUbD 4XdshNySOXqoP844Buaz5TKbWWBMSE7aDvjfxyh0ClDHCi2skb7VorLcEgQbbLEtn6 A07SgXTiOe9thDeZ+z/mwKc78mwpXi99SDmxsHck= Subject: Re: rm | Cleaning up recycle bin To: Mark Blackman , freebsd-questions@freebsd.org References: From: Jos Chrispijn Organization: Userland rocks! Message-ID: <3d81f318-b162-0b9d-ef97-0acce8f2de32@cloudzeeland.nl> Date: Sun, 23 Feb 2020 14:16:57 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP on poseidon.cloudzeeland.nl X-Rspamd-Queue-Id: 48QQhW0DJQz4V7F X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cloudzeeland.nl header.s=cloud header.b=lNCDNyBH; dkim=pass header.d=cloudzeeland.nl header.s=cloud header.b=lNCDNyBH; dmarc=none; spf=pass (mx1.freebsd.org: domain of bsduser@cloudzeeland.nl designates 83.161.133.58 as permitted sender) smtp.mailfrom=bsduser@cloudzeeland.nl X-Spamd-Result: default: False [-4.82 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[cloudzeeland.nl:s=cloud]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[cloudzeeland.nl]; HAS_ORG_HEADER(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[cloudzeeland.nl:+]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-2.32)[ip: (-9.83), ipnet: 83.160.0.0/14(-1.76), asn: 3265(-0.03), country: NL(0.03)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:3265, ipnet:83.160.0.0/14, country:NL]; MID_RHS_MATCH_FROM(0.00)[] 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 13:17:00 -0000 On 23-2-20 14:11, Mark Blackman wrote: > What goal are you trying to achieve? Actually I might be stuck in 'Windows mode' here (grin). Just want to be sure that I free up available space as much as I can. The ‘rm’ command will free up the space associated with the file as long as nothing else is holding open the file. The raw data will remain on the disk until something else needs the space. I see; is that ZFS behavior or goes that for all BSD file systems? Are you looking for a secure erase where no data is left behind? Generally that requires removing the entire filesystem. There’s no utility which will zero out the blocks. The general principle is like a whiteboard that you abandon, you no longer expect to find the whiteboard taking up space, but what’s written on the whiteboard is not erased, just the ability to find the whiteboard through the filesystem. Thanks for explaining. Best, Jos