What is the difference between running a script as
./scriptname.sh and sh scriptname.sh
Answer Posted / vidhu
while running the script using this "./" script run from
curent location we have to give executable permision to the
script file
By default file contains 644 permissions there is no
execute permission while running it shows error
use `chmod` to give execute permission and run
where as "sh" it runs the script with the help of default
shell
Is This Answer Correct ? | 5 Yes | 4 No |
Post New Answer View All Answers
Is shell a scripting language?
How to print the first array element?
How do we delete all blank lines in a file?
Can shell script run on windows?
What does it mean to debug a script?
What is the best shell scripting language?
How to print all array elements and their respective indexes?
How do I run a powershell script?
What is gui scripting?
How do you create a shortcut in linux?
What is the syntax of while loop in shell scripting?
What is a file basename?
How does ls command work?
What is bash eval?
Explain about login shell?