[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: HILFE DRINGEND Ordnere gelöscht



Hallo,

Martin Steigerwald wrote:

> Natürlich sollte man rm nur dann mit der Option -r und/oder der Option -f 
> laufen lassen, wenn man sicher ist, das dies für die Aufgabe auch 
> erforderlich ist. Es gibt viele, die einfach immer rm -rf verwenden und 
> sich dann ärgern, wenn es mal schief geht. Ein rm ohne -rf hat in einem 
> solchen in der Regel weniger gravierende Auswirkungen.

Seit neuestem gibt es in unstable safe-rm:

Description: wrapper around the rm command to prevent accidental deletions
 This package provides a tool intended to prevent the accidental deletion
 of important files by replacing /bin/rm with a wrapper, which checks the
 given arguments against a configurable blacklist of files and directories
 that should never be removed.
 .
 Users who attempt to delete one of these protected files or directories will
 not be able to do so and will be shown a warning message instead.
 .
 Protected paths can be set both at the site and user levels.


Klingt für mich gar nicht mal so unvernünftig.

Schönen Gruß,

Wolf
-- 
My idea of a balanced diet is a beer in each hand.


Reply to: