Ctrl + c, ctrl + d, ctrl + z in linux

Source: Internet
Author: User


Ctrl + c, ctrl + d, ctrl + z in linux, ctrl + c and ctrl + z are interrupt commands, but their functions are different. ctrl + c forces the execution of the program to be interrupted. Ctrl + z is to interrupt the task, but this task is not completed, he still maintains the pending state in the process, you can use the fg/bg operation to continue the foreground or background tasks. The fg command restarts the interrupted tasks at the foreground, and the bg command executes the interrupted tasks in the background. for example, if you want to use shell to perform other operations on a file vi, but you do not want to disable vi, because you have to release the disk, you can simply press ctrl + z, shell suspends the vi process ~, After you finish the shell operation, you can use the fg command to continue vi your file. Ctrl-d is not a sending signal, but a special binary value, indicating EOF.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.