Troubleshooting a shell script
There is one more way other than script execution to run a script in a different shell. Type bash with the name of the script as parameter.
Look at the above snapshot, it displays the exm script content with bash command.
Look at the above snapshot, this is the exm script we have written.
By expanding bash command with -x, shell allows us to see commands that the shell is executing.
Look at the above snapshot, with command bash -x, we can see the shell expansion.
Next TopicPrevent setuid root spoofing