What Is Ctrl C in Unix?
Contents

Ctrl + C is used to kill a process with signal SIGINT , in other words it is a polite kill . Ctrl + Z is used to suspend a process by sending it the signal SIGTSTP , which is like a sleep signal, that can be undone and the process can be resumed again.

What is Ctrl-C function?

Control+C is a common computer command. It is generated by pressing the C key while holding down the Ctrl key on most computer keyboards. In graphical user interface environments that use the control key to control the active program, control+C is often used to copy highlighted text to the clipboard.

What does Ctrl-C do in terminal?

Turned out the way Ctrl-c works is quite simple — it’s just a shortcut key for sending the interrupt (terminate) signal SIGINT to the current process running in the foreground. Once the process gets that signal, it’s terminating itself and returns the user to the shell prompt.

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest