Question 50
The action Begin the executable script with #!/bin/bash, using the actual interpreter path on that host. was applied for this goal: An unattended shell script must select the Bash interpreter even if the caller's default login shell is not Bash. Which observation provides the most direct acceptance evidence?
Explanation
Correct Answer
Executing the script directly uses Bash syntax consistently despite differing interactive user shells. This checks the effect of Begin the executable script with #!/bin/bash, using the actual interpreter path on that host. against the stated operational goal.
Incorrect Answers
That observation checks An account must execute a maintenance script but cannot run it with execute permission removed. In this scenario it does not demonstrate Begin the executable script with #!/bin/bash, using the actual interpreter path on that host.; the relevant evidence must establish Executing the script directly uses Bash syntax consistently despite differing interactive user shells.
That observation checks A Bash script must distinguish an empty input string from a nonempty one without running external commands. In this scenario it does not demonstrate Begin the executable script with #!/bin/bash, using the actual interpreter path on that host.; the relevant evidence must establish Executing the script directly uses Bash syntax consistently despite differing interactive user shells.
That observation checks A batch job needs to replace the shell process entirely with a single long-running command once setup ends. In this scenario it does not demonstrate Begin the executable script with #!/bin/bash, using the actual interpreter path on that host.; the relevant evidence must establish Executing the script directly uses Bash syntax consistently despite differing interactive user shells.






LPI Level 1 (102-500) Practice Tests