What is the difference between running a script as
./scriptname.sh and sh scriptname.sh
Answer / 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 |
What is the syntax of "nested if statement" in shell scripting?
What is bash used for?
Print the 10th line without using tail and head command.
What language is bash?
State the advantages of shell scripting?
how to create purchase order
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 a shell script? Can you name some of its advantages?
How does path variable work?
Is shell scripting a programming language?
What is sudo command?
what is the difference between cmp and diff commands