What are the different methods available to run a shell
script?
Answer Posted / sujitha
3 ways
1. Execute Shell Script using File name
$./scriptfile { The changes in the script effect to current
terminal }
2 . Execute Shell Script by specifying the interpreter
$sh scriptfile
3. Execute Shell script using ../ (dot space dot slash)
$. ./scriptfile { The changes in the script effect to total
system }
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does egrep mean?
What language is used in terminal?
How to get the 3rd element/column from each line from a file?
What are script files?
What lives in a shell?
Explain about stdin, stdout and stderr?
What is a shell in operating system?
What is the use of a shebang line?
What is sh in shell script?
What is shell terminal?
What is the lifespan of a variable inside a shell script?
What are the zombie processes?
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.
What is subshell?
What is a shell environment?