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 |
Hi All, Is it possible to create one file name only space or space in file name in UNIX and we can able to run that on Unix?
How to check if a directory exists?
What is the use of "shift" command in passing parameters?
How are shells born?
What is shell environment?
Script S1 (which copies .dat files from one directory1 to another directory2) run continuously. Write Script S2 which kills S1 first, compresses all .dat files in directory1 and directory2 successfully, re-run Script S1 and stops self i.e. S2.
Given a file find the count of lines containing the word "abc".
In which variable prompt value is stored?
Differentiate between ‘ and ” quotes.
What is an sh file?
State the advantages of shell scripting?
Write the syntax for "if" conditionals in linux?