Re: Mistake while emptying trash -- help

Mark Galassi <[email protected]> Thu, 21 Oct 2021 10:42:59 -0600
Newsgroups gmane.org.user-groups.linux.nmglug
Message-ID <[email protected]>
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 $