Topic 1, Shells, Scripting and Data Management
What is true regarding the statement beginning with #! that is found in the first line of a script?
A. It prevents the script from being executed until the ! is removed.
B. It specifies the path and the arguments of the interpreter used to run the script.
C. It is a comment that is ignored by the script.
D. It specifies the character encoding of the script.
Which Bash option prevents a user from accidentally overwriting a file with a ">"?
A. set -o safe
B. set -o noglob
C. set -o noclobber
D. set -o append
E. set -o nooverwrite
Which of the following commands prints the exit value of the most recently executed program in
A. echo $?
B. echo $#
C. echo $exit
D. echo $status
E. echo $&
What word wil complete an if statement in bash such as the following: if [ -x "$file" ]; then echo
(Please provide the missing word only)