2

Also what are the main differences between these two. To execute a script is it necessary to write this at the beginning of script?

Nainita
  • 2,862

1 Answers1

1

If you make a script executable, the loader will treat the first line as an interpreter directive and use the specific program to run the script. In this case you are using the Korn Shell #!/bin/ksh or the Bourne Shell #!/bin/sh.

dank8
  • 105
  • 6
user1794469
  • 4,067
  • 1
  • 26
  • 42