Linux - Signals

​In Linux, there are lots of ​signals that we can send processes. ​These signals are labeled with names starting with sig. ​Remember the sig.int signal we talked about before. ​You can use sig.int to interrupt a process and ​the default action of the signal is to ​terminate the process that’s interrupting. ​This is true for Linux too. ​You can send a sig.int signal through ​the keyboard combination control ​C. Let’s see this in action.

​I’m going to do the same thing as we did in Windows ​and start a program like sudo parted. ​ Pasted image 20260623195537 We can see that we’re in the parted tool now. ​Let’s interrupt this tool and say we want it to abort ​the process with a control C keyboard combination.  Pasted image 20260623195609 ​Now we can see that the process ​closed and we’re back in our shell. ​We were able to interrupt our process ​midway and terminate it.