πŸ“’ Too many exams? Don’t know which one suits you best? Book Your Free Expert πŸ‘‰ call Now!

  • google app store apple app store
  • βœ–

      Question

      In bash, what does trap 'echo Exit' EXIT

      do?
      A Ignores exit command Correct Answer Incorrect Answer
      B Kills all background jobs on exit Correct Answer Incorrect Answer
      C Executes echo Exit when the script terminates Correct Answer Incorrect Answer
      D Suppresses error messages Correct Answer Incorrect Answer
      E Redirects output to null Correct Answer Incorrect Answer

      Solution

      trap executes commands when a signal (or EXIT event) is received.

      Practice Next
      ask-question