When to use #!/bin/ksh and #!/bin/sh? Need example
11,368
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 or the Bourne Shell.
Related videos on Youtube
Author by
Nainita
Updated on September 18, 2022Comments
-
Nainita over 1 year
Also what are the main differences between these two. To execute a script is it necessary to write this at the beginning of script?
-
G-Man Says 'Reinstate Monica' almost 9 yearsThe question is a little all-over-the place, but, based on the "When to use
#!/bin/ksh
and#!/bin/sh
? … what are the main differences between these …?" parts, I believe that this is a duplicate of What are the fundamental differences between the mainstream *nix shells?; see also Which shell should I use – tcsh vs bash? and (to a lesser extent) What's the difference between the terms “Shell” and “Bash”?
-