Expalin Trapping Signals and give exampleSolutionFirst of al

Expalin Trapping Signals and give example.

Solution

First of all signals are software interrupts. Signals vary from user requests that are not usual/ access request to memory area where generally there is no access, etc.

Trap is a shell command. It defines the signals that need to be trapped.

Examples:

1. It can be used to clean up the files.

If Ctrl C is pressed, then trap command will make sure that the files not being used after pressing of ctrl C get cleared.

2. If interrupt or any other signal is to be ignred below commands can be used:

Thus, trap defines and activates handles when shell receives some special signals.

Expalin Trapping Signals and give example.SolutionFirst of all signals are software interrupts. Signals vary from user requests that are not usual/ access reque

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site