On the significance of Ctrl + C, Ctrl + D and Ctrl + Z in Linux

Time:2021-3-8

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.

Recommended Today

asp.net Application of regular expression

1. Balanced group / recursive matching (?’ Group ‘), which is called the corresponding content of group, and counts it on the stack;(?’- Group ‘), and count the corresponding content named group out of the stack(?!) Zero width negative look ahead assertion. Since there is no suffix expression, attempts to match always failRegular example:,{0,1}”5″:\[[^\[\]]*(((?’Open’\[)[^\[\]]*)+((?’-Open’\])[^\[\]]*)+)*(?(Open)(?!))\],{0,1} Test […]