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 difference between cmp and diff commands
How do we delete all blank lines in a file?
What exactly is a shell?
How to get the last line from a file using just the terminal?
What language is bash written in?
I want to connect to a remote server and execute some commands, how can I achieve this?
How to check if the previous command was run successfully?
How to customise the existing shell?
Can you write a script to portray how set –x works?
how did u debugging in unix/ linux platform ??( project Related)
What is a shell script in windows?
what is "umask"?