The first line in any shell script begins with a _____

Answer: d
Explanation: When the comment character (#) is placed anywhere in a line; the shell ignores all characters on its right. However, this rule doesn’t apply to the first line which is the interpreter line. It always begins with #! and followed by the pathname of the shell to be used for running the script.
Code:
#!/bin/sh                   // first line defining the pathname
# script.sh                // name of the script
 

Tìm kiếm

Back
Top