Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

How not to delete your important files

902 views

Published on

Lightning talk introducing safe-rm, a tool designed to prevent the accidental deletion of important files.

Published in: Technology, Business
  • Be the first to comment

  • Be the first to like this

How not to delete your important files

  1. 1. N o.43 HOW NOT TO DELETE YOUR IMPORTANT FILES François Marier <francois@safe-rm.org.nz>
  2. 2. tl;drapt-get install safe-rm
  3. 3. story
  4. 4. $ rm -rf /usr/lib/junk
  5. 5. $ rm -rf /usr/lib/junkrm: cannot remove `/junk:No such file or directory
  6. 6. $ rm -rf /usr/lib /junkrm: cannot remove `/junk:No such file or directory
  7. 7. recovery
  8. 8. #%@☠✮!!!1- swear alot
  9. 9. 1- swear a lot2- reinstall dpkg
  10. 10. 1- swear a lot2- reinstall dpkg3- reinstall apt
  11. 11. 1- swear a lot2- reinstall dpkg3- reinstall apt4- list installed packages
  12. 12. 1- swear a lot2- reinstall dpkg3- reinstall apt4- list installed packages5- reinstall all packages
  13. 13. /bin/etc/home/francois/usr/bin/usr/lib
  14. 14. safe-rm
  15. 15. /usr/bin/rm
  16. 16. PATH="/usr/bin:/bin"
  17. 17. /bin/rm -rf /usr/lib
  18. 18. $ rm -rf /usr/lib
  19. 19. $ rm -rf /usr/libsafe-rm: skipping /usr/lib
  20. 20. /bin /usr/bin/boot /usr/include/dev /usr/lib/etc /usr/local/home /usr/local/bin/initrd /usr/local/include/lib /usr/local/sbin/proc /usr/local/share/root /usr/sbin/sbin /usr/share/sys /usr/src/usr /var
  21. 21. /etc/safe-rm.conf ~/.safe-rm
  22. 22. apt-get install safe-rm
  23. 23. THE END www.safe-rm.org.nzCopyright © 2012 François Marier <francois@safe-rm.org.nz> This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

×