Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Cannot empty trash because item is in use' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Cannot empty trash because item is in use
Authored by: joeyblades on Jan 21, '11 07:52:22AM

Slightly off topic, but I feel compelled to point out what I think is bad advice in general. I've been using unix since the late 70's. I'm reasonably savvy with unix, yet I almost never use rm * to delete files. The only time I ever do this is after I double and triple check that I'm in the right directory and I list the files that I'm about to nuke as an alternate check that the destruction I am about to wreak is the destruction I intend. I would never recommend the use of this command to anyone because I can never be sure that they are as careful as I am.

In the case of this example, it's like using a chainsaw to remove a wart. It's simply not necessary. All you have to do is open a terminal window and type rm followed by a space, open your trash and drag the file you want to remove to the terminal window, then hit return. It's easy. It's safe. It's effective. It's actually quicker than doing the cd to your Trash folder in the terminal.

Sorry, climbing down from my soapbox now.



[ Reply to This | # ]
Cannot empty trash because item is in use
Authored by: dzurn on Jan 21, '11 10:47:35AM
I agree, the rm command should almost never get * in normal usage, it's just too risky, even when we think we know what we're doing.

I always add the -i flag ("interactive") when issuing rm -rfi so the system asks before deleting every file.

---
Madness takes its toll.
Please have exact change.


[ Reply to This | # ]