What are the different methods available to run a shell
script?

Answer Posted / keerthi

3 ways

1. sh scriptname.sh

2. If the script has execute permission -

./script.sh


3. If the script has execute permission and is
stored in the directory listed in PATH ----

script.sh or .script.sh

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is shift command in shell script?

768


Is shell scripting a language?

810


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3836


What is the syntax of while loop in shell scripting?

822


How to use arguments in a script?

822


How do you find out What is your shell?

817


How do I debug a shell script?

845


Differentiate between ‘ and ” quotes.

833


what is tickets $ what low,medium,high priorite pls define time also

1953


How do I save a powershell script?

827


What are the different commands available to check the disk usage?

717


What is shell prompt?

766


Is shell scripting easy to learn?

795


What are different types of shell?

706


Is cmd a shell?

820