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 |
shell script for reverse the string
How will you print the login names of all users on a system?
what is info area how many types?
write a shell script to check whether all the directories in the path exist has read and write permission
What's the difference between scripting and coding?
How do I run a .sh file?
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
What is basename in shell script?
How to rename all the files in a folder having specific extension? Example: I have some files with extension (.txt) in a folder name 'Test'. I have to rename all the .txt files in a test and its subdirectories to .my extension.
what is the meaning of First line of shell script ,what is meaning of #! pleas explain brifly
What is scripting autism?
How to print the first array element?