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 $1 in shell scripting?
What is the significance of the shebang line in shell scripting?
What is awk in shell script?
What is computer cli?
What shell is bin sh?
Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.
Can shell script run on windows?
What happens when you type ls?
What is the syntax of while loop in shell scripting?
How will you emulate wc –l using awk?
c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l
What are the zombie processes?
How do I debug a shell script?
What is the command to find out users on the system?
Where is bash history?