[Novalug] removing file
Bryan J. Smith
b.j.smith at ieee.org
Sun Mar 21 09:29:02 EDT 2010
On Sun, 3/21/10, Nino Pereira <pereira at speakeasy.net> wrote:
> You can also do it the radical way:
No, you should *NEVER* ...
> make a new directory, (temp), move all the files into that
> directory and go there too
> mv * temp
> cd temp
> copy all the files you want to keep back into the previous
> directory, but not the offending file, and then nuke the whole
> directory with
> rm -rf *
*NEVER* do this. I can*NOT* recommend this practice as I've
*NEVER* seen it "good practice" to use a recursive remove to
delete a select set of files. Regulate recursive removes to
cases where you want a tree completely obliterated, not things
like this.
Sorry, just feel that strongly about it.
> Come to think of it, do you see the file in a GUI file
> browser? Can't you click on the file in the GUI and remove
> it that way?
Agreed.
And if you don't have X running, then consider Midnight
Commander (mc) instead. It works like Norton Commander and
I always install it on my Linux systems.
More information about the Novalug
mailing list