When I tried to use alias in shell script, it didn't work. This will clearify what I mean:- #!/bin/bash alias hello='echo Hello, how are you?' hello #end of shell script If this shell script is run it will give an error message stating that the command hello was not found. Why does this happen? Wasn't the alias command executed? Then why hello was not aliased?