What happens when a shell script is executed?

Thảo Justin

New member
What happens when a shell script is executed?
Answer
When you “execute” your script by typing “./myscript.sh”,
the kernel will load into memory the binary program specified by the first line of the script, and then give only the name of the script to the binary program as its first argument. (The kernel never executes a text file directly.)
 

Tìm kiếm

Back
Top