How to Disable Ctrl+c or Ctrl+z Using the "trap" Command

(Doc ID 2199243.1)

Last updated on NOVEMBER 03, 2016

Applies to:

Linux OS - Version Oracle Linux 7.2 with Unbreakable Enterprise Kerne [4.1.12] and later
Linux x86-64


 The purpose is to disable CTRL+C or CTRL+Z interrupt for the root user or a general user account by the trap command 


Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms