CompTIA
XK0-005 · Question #137
An administrator has written the following Bash script: All necessary files exist in the correct locations. However, when the administrator executes the following error is received…
The correct answer is A. The shebang points to the wrong path. The shebang line is the absolute path to the Bash interpreter, and the interpreter usually lives in
Scripting, Containers, and Automation
Question
An administrator has written the following Bash script: All necessary files exist in the correct locations. However, when the administrator executes the following error is received: /home/user/test.sh No such file or directory Which of the following is the MOST likely cause of the error?
Options
- AThe shebang points to the wrong path.
- BThe script is not executable.
- CThe formatting of the file is incorrect.
- DNslookup is not installed.
How the community answered
(55 responses)- A71% (39)
- B4% (2)
- C9% (5)
- D16% (9)
Explanation
The shebang line is the absolute path to the Bash interpreter, and the interpreter usually lives in
Topics
#Bash scripting#Shebang#Script execution#Troubleshooting
Community Discussion
No community discussion yet for this question.