What does Ctrl+c, Ctrl+d, Ctrl+z mean in Linux? Ctrl+c and ctrl+z are both interrupt commands, but their functions are different. Ctrl+c is used to force the execution of the program to be interrupted. Ctrl+z interrupts the task, but the task is not finished. It is still in progress and just remains in a suspended state. [root@localhost ~]# ping baidu.com PING baidu.com (220.181.57.217) 56(84) bytes of data. 64 bytes from 220.181.57.217: icmp_seq=1 ttl=128 time=58.7 ms 64 bytes from 220.181.57.217: icmp_seq=2 ttl=128 time=76.6 ms 64 bytes from 220.181.57.217: icmp_seq=3 ttl=128 time=54.6 ms 64 bytes from 220.181.57.217: icmp_seq=4 ttl=128 time=72.7 ms 64 bytes from 220.181.57.217: icmp_seq=5 ttl=128 time=51.3 ms 64 bytes from 220.181.57.217: icmp_seq=6 ttl=128 time=124 ms 64 bytes from 220.181.57.217: icmp_seq=7 ttl=128 time=71.2 ms 64 bytes from 220.181.57.217: icmp_seq=8 ttl=128 time=52.4 ms 64 bytes from 220.181.57.217: icmp_seq=9 ttl=128 time=51.7 ms 64 bytes from 220.181.57.217: icmp_seq=10 ttl=128 time=254 ms 64 bytes from 220.181.57.217: icmp_seq=12 ttl=128 time=64.2 ms 64 bytes from 220.181.57.217: icmp_seq=13 ttl=128 time=51.8 ms 64 bytes from 220.181.57.217: icmp_seq=14 ttl=128 time=92.5 ms 64 bytes from 220.181.57.217: icmp_seq=15 ttl=128 time=52.1 ms 64 bytes from 220.181.57.217: icmp_seq=16 ttl=128 time=51.8 ms ^Z [1]+ Stopped ping baidu.com Users can use fg/bg operations to continue the foreground or background tasks. The fg command restarts the task that was interrupted in the foreground. [root@localhost ~]# fg ping baidu.com 64 bytes from 180.149.132.47: icmp_seq=6 ttl=128 time=59.0 ms 64 bytes from 180.149.132.47: icmp_seq=7 ttl=128 time=67.2 ms 64 bytes from 180.149.132.47: icmp_seq=8 ttl=128 time=54.5 ms 64 bytes from 180.149.132.47: icmp_seq=10 ttl=128 time=55.9 ms 64 bytes from 180.149.132.47: icmp_seq=12 ttl=128 time=56.8 ms 64 bytes from 180.149.132.47: icmp_seq=13 ttl=128 time=60.0 ms 64 bytes from 180.149.132.47: icmp_seq=14 ttl=128 time=155 ms ^Z [1]+ Stopped ping baidu.com The bg command puts the interrupted task into the background for execution. For example: when you vi a file, if you need to use the shell to perform other operations, but you do not intend to close vi because you have to save and exit, you can simply press Ctrl+z, the shell will suspend the vi process~, when you end the shell operation, you can use the fg command to continue vi your file. Ctrl+d does not send a signal, but represents a special binary value, indicating EOF. The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: Teach you step by step to develop a brick-breaking game with vue3
>>: A brief understanding of MySQL SELECT execution order
Several common paging methods: 1. Escalator metho...
Table of contents Listener 1.watchEffect 2.watch ...
Preface The project requirement is to determine w...
Defining an array in Bash There are two ways to c...
I have several tomcats here. If I use them at the...
If you don’t understand what I wrote, there may b...
For security reasons, Alibaba Cloud Server ECS co...
What is ssh Administrators can log in remotely to...
Preface Now the operating system used by my compa...
[LeetCode] 183.Customers Who Never Order Suppose ...
The importance of data consistency and integrity ...
The Linux command to run the jar package is as fo...
1. There are two ways to modify global variables ...
Technology Fan html web page, you must know vue f...
Table of contents A murder caused by ERR 1067 The...