Your Question: What Does Ctrl C Do in Linux?
Contents

While in a command line such as MS-DOS, Linux, and Unix, Ctrl + C is used to send a SIGINT signal, which cancels or terminates the currently-running program. For example, if a script or program is frozen or stuck in an infinite loop, pressing Ctrl + C cancels that command and returns you to the command line.

What does Control C do on Linux?

While Ctrl + C is used to kill a process with the signal SIGINT, and can be intercepted by a program so it can clean its self up before exiting, or not exit at all. when you press ctrl + c , it means you send SIGINT to your process.

Does Ctrl C kill process Linux?

Here are some of the basic process management shortcuts: Ctrl + Z : pause a process (plus bg to resume in the background, fg to raise to foreground) Ctrl + C : politely ask the process to shut down now. Ctrl + : mercilessly kill the process that is currently in the foreground.

Elena Rostova

Elena Rostova

Lead Health, Wellness & Medical Journalist

Elena Rostova holds a Master's degree in Public Health Journalism. She covers groundbreaking medical research, holistic wellness trends, mental health awareness, and nutritional science.

Share this article
Twitter Facebook Pinterest