LPI
101-500 · Question #24
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
The correct answer is A. source /usr/local/bin/runme.sh B. . /usr/local/bin/runme.sh. You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Shells and Shell Scripting
Question
From a Bash shell, which of the following commands directly executes the instruction from the file /usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)
Options
- Asource /usr/local/bin/runme.sh
- B. /usr/local/bin/runme.sh
- C/bin/bash /usr/local/bin/runme.sh
- D/usr/local/bin/runme.sh
- Erun /usr/local/bin/runme.sh
How the community answered
(39 responses)- A87% (34)
- C5% (2)
- D3% (1)
- E5% (2)
Explanation
You've hit your Sonnet limit · resets Jun 8, 9am (UTC)
Topics
#source builtin#subshell execution#shell sourcing#script execution
Community Discussion
No community discussion yet for this question.