24 Şubat 2019 Pazar

safe-rm komutu

Giriş
Açıklaması şöyle
safe-rm prevents the accidental deletion of important files by replacing rm with a wrapper which checks the given arguments against a configurable blacklist of files and directories which 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.
Örnek
Şöyle yaparız.
$ rm /*
safe-rm: skipping /bin
safe-rm: skipping /boot
safe-rm: skipping /dev
safe-rm: skipping /etc
safe-rm: skipping /home
safe-rm: skipping /lib
safe-rm: skipping /proc
safe-rm: skipping /root
safe-rm: skipping /sbin
safe-rm: skipping /sys
safe-rm: skipping /usr
safe-rm: skipping /var
…


Hiç yorum yok:

Yorum Gönder