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
What are zombie processes?
How do you find out What is your shell?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1
What is difference between shell and bash scripting?
What is the use of break command?
How do I save a powershell script?
What is mac default shell?
What are the different types of variables used in shell script?
How do I set bash as default shell mac?
What is shell scripting?
What is shell environment?
how to print the 2-d, 3-d arrays in unix shell script programs please answer thi questio to my mail venusaikumar@gmail.com
What is a program shell?
What is meant by $1 in shell script?
What are the different types of commonly used shells on a typical linux system?