Re: Mistake while emptying trash -- help
Art Barnes <[email protected]> Thu, 21 Oct 2021 10:47:21 -0600
| Newsgroups | gmane.org.user-groups.linux.nmglug |
|---|---|
| Message-ID | <[email protected]> |
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 <[email protected]> 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 > [email protected] > http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org _______________________________________________ nmglug mailing list [email protected] http://lists.nmglug.org/listinfo.cgi/nmglug-nmglug.org