Linux

What does ctrl+c do in Linux?

In inux-based operating systems, various operations are usually performed by entering commands through the terminal screen.

When using the terminal, the process may not end after typing a command like the one below.

Ctrl+c – Stops the running process.

Ctrl + Z – puts the running process on the back burner and pauses it.

What makes Ctrl+Z and Ctrl+C distinct on the Unix command line?

By sending a process the signal SIGTSTP, which cannot be intercepted by the application, using Control+Z suspends the process. A program can intercept the signal SIGINT used to kill a process with Control+C so that it can clean up before quitting or not exit at all. SIGINT is used to kill processes.

Back to top button