From owner-freebsd-questions@freebsd.org Sun Feb 23 13:11:38 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 3CD4623BF08 for ; Sun, 23 Feb 2020 13:11:38 +0000 (UTC) (envelope-from mark@exonetric.com) Received: from relay.exonetric.net (relay0.exonetric.net [178.250.72.161]) by mx1.freebsd.org (Postfix) with ESMTP id 48QQZH74PTz4Jyx for ; Sun, 23 Feb 2020 13:11:35 +0000 (UTC) (envelope-from mark@exonetric.com) Received: from imac.localdomain (90.69.187.81.in-addr.arpa [81.187.69.90]) by relay.exonetric.net (Postfix) with ESMTPSA id C1D482B309; Sun, 23 Feb 2020 13:11:33 +0000 (GMT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: rm | Cleaning up recycle bin From: Mark Blackman In-Reply-To: Date: Sun, 23 Feb 2020 13:11:32 +0000 Cc: freebsd-questions@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Jos Chrispijn X-Mailer: Apple Mail (2.3608.60.0.2.5) X-Rspamd-Queue-Id: 48QQZH74PTz4Jyx X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of mark@exonetric.com has no SPF policy when checking 178.250.72.161) smtp.mailfrom=mark@exonetric.com X-Spamd-Result: default: False [2.81 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[exonetric.com]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.86)[0.862,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.30)[0.305,0]; R_SPF_NA(0.00)[]; RCVD_NO_TLS_LAST(0.10)[]; RCVD_IN_DNSWL_LOW(-0.10)[161.72.250.178.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:12290, ipnet:178.250.72.0/21, country:GB]; MID_RHS_MATCH_FROM(0.00)[]; IP_SCORE(0.24)[ipnet: 178.250.72.0/21(1.13), asn: 12290(0.14), country: GB(-0.07)]; FROM_EQ_ENVFROM(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:11:38 -0000 > On 23 Feb 2020, at 13:05, Jos Chrispijn = wrote: >=20 > I read somewhere that using the rm command does not phsyically remove = the 'deleted' files when using the command in a terminal session. Can = you tell me how/where I can really remove these files (as per user = account or in general)? Thanks! What goal are you trying to achieve? The =E2=80=98rm=E2=80=99 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. Are you looking for a secure erase where = no data is left behind? Generally that requires removing the entire = filesystem. There=E2=80=99s 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=E2=80=99s = written on the whiteboard is not erased, just the ability to find the = whiteboard through the filesystem.=20 - Mark