[PLUG] How To Remove "Ghost" Files?
Michael Rasmussen
michael at jamhome.us
Fri Oct 8 15:18:34 UTC 2010
On Fri, Oct 08, 2010 at 09:09:46AM -0500, Fred James wrote:
> Rich Shepard
> One way would be to ...
> (a) cp all files except the 'unwanted' ones to a new (temporary)
> directory outside of their current directory
> (b) rm -rf the directory in which the 'unwanted' files reside
> (c) mkdir the deleted directory again
> (d) mv all those 'good' files to the recreated directory
> (e) rm -rf the temporary directory that you made in step 'a'
> ... there are other ways, of course
rm -i * with a lot of n key pressing is much easier.
modify * to get smaller list to work from.
--
Michael Rasmussen, Portland Oregon
Trading kilograms for kilometers since 2003
Be appropriate && Follow your curiosity
http://www.jamhome.us/
The Fortune Cookie Fortune today is:
The difference betwee a million and a billion is the difference between
a sip of wine and 30 seconds with your daughter, and a bottle of gin and a night with her.
~ XKCD http://xkcd.com/558/
More information about the PLUG
mailing list