Multiple choice unix

If you are to use [Control-c] as the interrupt key instead of [Del], then you will have to use

  1. tty ^c

  2. stty intr \^c

  3. stty echoe

  4. stty echo \^a

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The stty command changes terminal settings. 'stty intr ^c' sets the interrupt character to Control-c. Option B uses 'stty intr ^c' (escaping the caret) which achieves the same result in a shell context. Option A uses 'tty' which prints terminal info, and 'echoe' controls erasure.