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 can scripts do?
What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?
What does $0 mean in shell script?
What are different types of shell?
I have 2 files and I want to print the records which are common to both.
What is echo in shell?
What are the advantages of shell scripting?
What is difference between shell and bash scripting?
determine the output of the following command: echo ${new:-variable}
How do scripts work?
What are the advantages of shell script?
What are the disadvantages of shell scripting?
What is the first line in every perl script called?
Calculate a real number calculation directly from the terminal and not any shell script.
Write a shell script to get current date, time, user name and current working directory.