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


    Question

    Which command is used to make a shell script

    executable?
    A chmod +x script.sh Correct Answer Incorrect Answer
    B sudo script.sh Correct Answer Incorrect Answer
    C run script.sh Correct Answer Incorrect Answer
    D exec script.sh Correct Answer Incorrect Answer
    E source script.sh Correct Answer Incorrect Answer

    Solution

    chmod +x sets executable permission, allowing the script to run directly.

    Practice Next
    ask-question