Transcript for:
Understanding Linux Signals and SIGINT

In Linux, there are lots of signals that we can send to processes. These signals are labeled with names starting with sig. Remember the sigint signal we talked about before? You can use sigint to interrupt a process and the default action of this signal is to terminate the process that it's interrupting. This is true for Linux too.

You can send a sigint 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 pseudo parted.

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 the ctrl c keyboard combination 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 success