Is there any difference between
cmd+. when stopping a terminal process?
No there is no difference. They both send a SIGINT signal to the running process.
You can demonstrate this using the code sample from this answer: https://stackoverflow.com/a/9256709/4087178
They are exactly the same. ⌘ CMD+. sends
SIGINT just like ⌃ CTRL+c. I've checked this with this python script:
#!/usr/bin/env python import signal import sys def signal_handler(signal, frame): print('You pressed Ctrl+C!') sys.exit(0) signal.signal(signal.SIGINT, signal_handler) print('Press Ctrl+C') signal.pause()
It's made this way for backward compatibility, earlier versions of Apple keyboards did not have ⌃ CTRL button. Please read Max Ried comment bellow.
code from: https://stackoverflow.com/a/1112350/3488699