1

I try to use this stty intr ^K in order to change Ctrl + C to Ctrl + K in CentOS 7.

But when I restart my server. It resets to default again.

How can I change it permanently from Ctrl + C to Ctrl + K in CentOS 7 ?

Leo
  • 13
  • 3

1 Answers1

0

You need to add stty intr ^K to your ~/.bashrc.

If you want to have a system wide effect, you need append that to your /etc/bash.bashrc file.

Aulis Ronkainen
  • 2,612
  • 42
  • 29
  • 27