On Sat, 18 Sep 1999, tom carlile wrote:

> ok, so i was cleaning up my old hd that was mounted
> on /opt, and i stupidly typed:
> rm -r /usr/share;
> when i meant rm -r /opt/usr/share;
> well, i stopped it after only a few moments had passed.
> 
> my question is about the nature of rm, how does it
> do its dirty work?  i assume it removes files alphabetically;a
> so to minimize the damage i would reinstall whatever package
> is the highest alphabetically and still there and then try
> to determine what else would be before it.  
> i was fine with this last night, but now i am getting some
> emacs errors that its missing some extensions.  
> i am wondering if the rm started working on all the dirs
> at the same time...this would make my situation much worse.

neither, it works in inode order mostly, or more specifically the order
returned by readdir.  It also works depth-first because it has to :)

If you're using a Linux that has packages, just -V[erify] all the packages
and you can generate a list of packages with missing files to restore.


_____________________   _                    _   _________________________
         Michael Rice  |_|    Collective    |_|  http://www.colltech.com
   [EMAIL PROTECTED]    |_  Technologies  _|    8007598888/8019292 pager 
           Consultant      []            []      "The Power Of Many Minds"   

---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to