I've been searching around for solution, hope that some gurus here can help.
I'm using some commands in my shell script and I'd like to protect these command to be moved to another directory. For instance, cp currently in /bin/cp. If I move it to /bin/cpxxx, my script will not be able to work as it give "command not found error" . How can I prevent it from happening?
This is in the event that the system is being hacked into and hence I'd like to the script to be able to send notification once it has been moved. Anyway to protect that?