4 ms·
I have aliased "rm" with "trash-put" for years and I just can't believe anyone is living without a trash capability under CLI. What kind of ancient environment
by mekster 4y ago
I have aliased "rm" with "trash-put" for years and I just can't believe anyone is living without a trash capability under CLI.
What kind of ancient environment is it without a trash capability? That's pre Windows 95. How are people handling the mistake of "rm *" in a wrong folder?
Added benefit of trash-put is, you don't need "-r" to delete a folder. It's just an annoyance from user's perspective.
If you think there's a compatibility problem in a script, just use /bin/rm and stop wasting time pulling hairs on unrecoverable deletion.
"@daily trash-empty 30"
Put this in cron to purge trashes older than 30 days daily.