Let's be real...
In inexperienced hands, the rm command can be risky business. I bang out rm commands all the time (when I'm trying to keep my file system organized, at least) and use it to good ends. But... Well, unless you're into file recovery, rm can be one of those tools that teach valuable lessons about things like typos. It's not forgiving.
But, you can make the rm command automatically include a sanity check. It's easy and something I'd probably recommend for new users who are going to go mucking about in the terminal. Heck, it might even be useful for us old graybeards...
linux-tips.us
Yeah, it's a cheesy alias - but it's an effective alias. You're just adding the -i flag automatically, which means you'll see what will be removed and given a chance to back out of the operation.
And yes, I know, I still haven't done an article on aliases. I've started that article twice and I just can't think of a good way to write it while fitting in with the formula I've been using. So, it's an article that will be written. I just need to be a better writer than normal.
In inexperienced hands, the rm command can be risky business. I bang out rm commands all the time (when I'm trying to keep my file system organized, at least) and use it to good ends. But... Well, unless you're into file recovery, rm can be one of those tools that teach valuable lessons about things like typos. It's not forgiving.
But, you can make the rm command automatically include a sanity check. It's easy and something I'd probably recommend for new users who are going to go mucking about in the terminal. Heck, it might even be useful for us old graybeards...
Let's Make The rm Command A Little Safer • Linux Tips
Linux Tips helps you get your Linux skills up to speed, by making Linux approachable.

Yeah, it's a cheesy alias - but it's an effective alias. You're just adding the -i flag automatically, which means you'll see what will be removed and given a chance to back out of the operation.
And yes, I know, I still haven't done an article on aliases. I've started that article twice and I just can't think of a good way to write it while fitting in with the formula I've been using. So, it's an article that will be written. I just need to be a better writer than normal.