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


    âš¡ Month End Offer - Flat 52% Off On All Courses! Enroll Now âš¡
    00:00:00 AM Left

    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