[kde-linux] trashed my ~/kde3.3/lib directory

Dave Nebinger dnebinger at joat.com
Wed Oct 5 18:30:16 UTC 2005


> Were you signed in as the root?
> I don't think you've did something terrible. Linux had to ask you before
> deleting file for good.  I've done something similar, but Linux repaired
> it in some magical way:).

There is nothing 'magical' there.  The /bin/rm command includes the '-i'
which indicates it should ask before deleting.  Most distros commonly alias
rm to be "rm -i" because it protects newbies who think they have a trashcan
metaphore like the windows world.

However, without the flag the file will be blasted.  If you have the alias
set up as above then "/bin/rm" will blast the file without asking.

AFAIK there is no 'undelete' command.  If there were it would have to know
how each filesystem handles file deletes.  I would think that for some FS it
may be impossible (i.e. if reiserfs rebuilds the btree).





More information about the kde-linux mailing list