how to disable and enable <control>-c or -z in a shell script

Dear all,
good day.

i'm asking about how to disable <control>-c or <control>-z in the beginning of a shell script then enable it again before the script exit

Best Regards

---------- Post updated at 04:41 AM ---------- Previous update was at 04:18 AM ----------

Dear All
i found the answer

trap '' 2
echo "This is a test. Hit [Ctrl+C] to test it..."
sleep 20
trap 2

thank you

Or you can use

trap '' INT

trap '' HUP

For more Details
trap

can you please tell me the difference ????

This is basically a symbolic name of the actual signal (that's an integar value). If you follow the link above in reply from amitranjansahu, you can see it gives you all the details.

The benefit of using a symbolic name is that it's more descriptive coding.