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 |
In which variable prompt value is stored?
Explain about "s" permission bit in a file?
c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory
How to get the first line from a file using just the terminal?
What does $@ mean bash?
what is the difference between cmp and diff commands
How do we delete all blank lines in a file?
What is shell terminal?
Suppose you execute a command using exec, what will be the status of your current process in the shell?
What is shell and terminal?
What is the difference between a shell variable that is exported and the one that is not exported?
how to get part of string variable with echo command only?