Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Ctrl C and Ctrl \

Tags:

shell

What is the difference between Ctrl-C or Ctrl-\ for terminating a process?

They are both similar though.

Can't find any documentation for Ctrl-\.

like image 944
Newbie Avatar asked Nov 20 '25 16:11

Newbie


1 Answers

CtrlC sends SIGINT to the foreground process, Ctrl\ sends SIGQUIT. The default handlers for both of them terminate the process, but the handler for SIGQUIT will also create a core dump (unless core dumps are disabled).

See here for a list of how all the standard termination signals are processed by default.

like image 108
Barmar Avatar answered Nov 24 '25 03:11

Barmar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!