ЁЯУв Too many exams? DonтАЩt know which one suits you best? Book Your Free Expert ЁЯСЙ call Now!

  • google app store apple app store
  • тЬЦ

      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
      More Shell Scripting Questions
      ask-question