What are the different methods available to run a shell
script?
Answer Posted / keerthi
3 ways
1. sh scriptname.sh
2. If the script has execute permission -
./script.sh
3. If the script has execute permission and is
stored in the directory listed in PATH ----
script.sh or .script.sh
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What is shell chemistry?
What does chmod do?
What is the command to find out today's date?
Is bash an operating system?
What is difference between bash and shell?
What is the significance of the shebang line in shell scripting?
What is eval in shell script?
Explore about environment variables?
What is bash coding?
How do I set bash as default shell mac?
Explain about stdin, stdout and stderr?
How do I run a script on mac?
How do we create command aliases in a shell?
Which scripting language is best for automation?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?