Monday, December 15, 2014

Shell Scripting: What if shebang(#!) is followed by path of the command /bin/rm i.e #! /bin/rm

What will happen if the following script, test.sh, is executed?

#!/bin/rm

echo "Hi"

./test.sh when executed, will remove the file test.sh

No comments:

Post a Comment