📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    What does the #!/bin/bash line at the beginning of a

    shell script indicate?
    A It is a comment Correct Answer Incorrect Answer
    B Specifies the shell to interpret the script Correct Answer Incorrect Answer
    C Prints the script name Correct Answer Incorrect Answer
    D Terminates the script Correct Answer Incorrect Answer
    E Declares a variable Correct Answer Incorrect Answer

    Solution

    The shebang (#!) followed by the shell path tells the OS which interpreter to use to execute the script.

    Practice Next
    ask-question