Both Ctrl + C and Ctrl + Z are interrupt commands, but their functions are different
CTRL + C is to forcibly interrupt the execution of the program.
The function of Ctrl + Z is to interrupt the task, but the task is not finished. It is still in the process. It just maintains the suspended state. The user can continue the foreground or background task with FG / BG operation. FG command restarts the foreground interrupted task, and BG command puts the interrupted task in the background
For example:If you need to use shell to perform other operations, but you don’t want to close VI, because you have to save and push. You can simply press Ctrl + Z, and the shell will suspend the VI process. When you finish that shell operation, you can use FG command to continue VI your files.
Instead of sending a signal, ctrl-d represents a special binary value, representing EOF.
The above discussion about the significance of Ctrl + C, Ctrl + D, and Ctrl + Z in Linux is the whole content shared by Xiaobian. I hope it can give you a reference and support developer.