Control C and program termination

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
Rog3236
Level 1
Level 1
Posts: 5
Joined: Fri Jun 17, 2011 3:03 pm

Control C and program termination

Post by Rog3236 »

Suppose you open a terminal and execute a program, e.g. Firefox. After using the program you wish to exit it using the terminal. I am not saying this is practical but would like to see just how this is done via the terminal. While Firefox is running the terminal is also running, i.e. there is no prompt available for command entry.

If I simply use Cntrl+C to end the program is this considered a graceful way of exiting Firefox?
User avatar
xenopeek
Level 24
Level 24
Posts: 24927
Joined: Wed Jul 06, 2011 3:58 am
Location: The Netherlands

Re: Control C and program termination

Post by xenopeek »

Ctrl+C sends the SIGINT signal to the foreground process, telling it to gracefully quit and return the prompt to the user.
Image
Post Reply

Return to “Newbie Questions”