Skip to main content

How to prevent rm -rf * or rm -rf / from executing?

Comments

2 comments

  • madmanmachines
    HI, The best is to just be careful not to execute as there are many commands to accomplish the same result. You won't be able to block all methods to destroy your machine. If you are still nervous you may accidentally remove directories, you can try safe-rm: -- launchpad.net/safe-rm -- Thanks,
    0
  • cPanelMichael
    Hello, You could try some of the solutions at the following third-party URL, including setting up an alias:
    0

Please sign in to leave a comment.