How to prevent rm -rf * or rm -rf / from executing?
I'm sure someone must have asked in these forums before, but search is ignoring the string rm -rf (too short/common) so I am not finding relevant results.
I believe it has something to do with bash rc
Can anyone point me to current correct instructions for CPanel servers ?
-
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
Please sign in to leave a comment.
Comments
2 comments