What's different between Ctrl+Z and Ctrl+C in Unix command line?What's different between Ctrl+Z and Ctrl+C in Unix command line?
Mark has once again managed to get massive rep for a great explanation of a pair of 'simple' Linux commands.
Control+Z is used for suspending a process by sending it the signal
SIGSTOP
, which cannot be intercepted by the program. While Control+C is used to kill a process with the signalSIGINT
, and can be intercepted by a program so it can clean its self up before exiting, or not exit at all.