How do I run a shell script in unix?



How do I run a shell script in unix?..

Answer / Mamta Yadav

To run a shell script, make it executable using `chmod +x script.sh`, and then execute it with either `./script.sh` or simply its name if the script is in your PATH.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Unix General Interview Questions

Explain the terms links and symbolic links with respect to unix?

1 Answers  


How many root directories exist in unix?

1 Answers  


What is unix operating system used for?

1 Answers  


How to restrict NULL value in UNIX

1 Answers  


How do you make programs portable on unix and dos under such circumstances?

1 Answers  


Is unix multiuser?

1 Answers  


Where unix is used today?

1 Answers  


Differentiate multiuser from multitask.

1 Answers  


Is android unix based?

1 Answers  


How to display n-th line of a file in Unix?

1 Answers  


Is windows a unix operating system?

1 Answers  


How to terminate a shell script if statement?

1 Answers  


Categories