📢 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, which command is used to trap and handle

    signals like SIGINT?
    A catch Correct Answer Incorrect Answer
    B trap Correct Answer Incorrect Answer
    C signal Correct Answer Incorrect Answer
    D exec Correct Answer Incorrect Answer
    E kill Correct Answer Incorrect Answer

    Solution

    trap is used to catch signals and define custom handlers. Example: trap "echo Interrupted" SIGINT.

    Practice Next
    ask-question