Recently I nearly gave myself a heart attack using rm -viR. (I don't normally use the prompting option, but included it here to protect the ignorant.) This isn't the first time I've caught myself being reckless, but I want it to be the last time. So I went Googling and found a couple of possible replacements for the aforementioned merciless command.
Looks good, seems to work, and it's built in to KDE.
The second option I found is trash-cli.
Sounds good, but it's not in the Ubuntu repos so I'd have to manually install. It's written in Python AFAIK.
Does anyone have experience with either of these? Are there any disadvantages or pitfalls to using either of these in scripts? Is there a better solution?
Edit: I'm using Kubuntu Hardy Heron 8.04.3. See Rog131's reply for the equivalent command on Jaunty.
Originally posted by man ktrash
The second option I found is trash-cli.
Originally posted by features
Does anyone have experience with either of these? Are there any disadvantages or pitfalls to using either of these in scripts? Is there a better solution?
Edit: I'm using Kubuntu Hardy Heron 8.04.3. See Rog131's reply for the equivalent command on Jaunty.
Comment