< Linux < Basic commands

stty command allows to set the options for a terminal device interface. For example you can disable Ctrl+C or Ctrl+Z in your scripts using the following commands.

  • To disable Ctrl+C:
    stty intr ''
  • To disable Ctrl+Z:
    stty susp ''
This article is issued from Wikiversity. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.