March 2002
Beginner
504 pages
10h 47m
English
This section covers some of the common questions about the shell itself and how the shell executes commands.
Chapter 2, “Script Basics,” stated that #!/bin/sh must be the first line in your script to ensure that the correct shell is used to execute your script. This line must be the first line in your shell script because of the underlying mechanism used by a shell to execute commands.
When you ask a shell to execute a command as follows
$ date
The shell uses the exec system call to ask the UNIX kernel to execute the command you requested. System calls are C language functions built in to the UNIX kernel that enable you to access features of the kernel
Read now
Unlock full access