[nmglug] Mistake while emptying trash -- help

Art Barnes art at pin2.io
Thu Oct 21 09:47:21 PDT 2021


Maybe not helpful for Leroy (or even avoiding his particular goof), but the trash-cli package is helpful for those who do file management on the command line

Sent from my iPhone

> On Oct 21, 2021, at 10:43 AM, Mark Galassi <mark at galassi.org> wrote:
> 
> 
> First, a strong caution: you absolutely do not want an "rm -rf *" in your shell's history.  I find that one way of avoiding possibly problems with repeating history while in the wrong dir is to do something like "rm -rf ../Trash/*"
> 
> As to your current question: if you just want to know the typical permissions on those dirs, below is what mine look like, so you can probably just do "mkdir files && chmod 700 files" and "mkdir info && chmod 700 info".
> 
> Trash $ pwd
> /home/markgalassi/.local/share/Trash
> Trash $ ls -la
> total 20
> drwx------  5 markgalassi markgalassi 4096 Feb  3  2021 .
> drwxrwxr-x 51 markgalassi markgalassi 4096 Oct 21 09:49 ..
> drwx------  2 markgalassi markgalassi 4096 Jun 30 22:00 expunged
> drwx------  3 markgalassi markgalassi 4096 Oct 14 14:12 files
> drwx------  2 markgalassi markgalassi 4096 Oct 14 14:12 info
> Trash $ 
> _______________________________________________
> nmglug mailing list
> nmglug at lists.nmglug.org
> http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org



More information about the nmglug mailing list