I just wanted to make sure that I understand the foreground and background process. Let's say, I have a program Hello_world. If I want to start the program I type in the foreground:Hello_worldThen if I want to continue Hello_world in the background I type:bg Hello_worldIf I want to kill the job I type:kill -9 %(job#) Also, how would I check to see if the job is terminated?
Foreground and Background
process;kill;background process;jobs
If you type:jobsIt should tell you what status are your background jobs in.See manual for further info.Example:./job &Now it is running on background.You can kill it by:kill %1or use any switch like:-HUP-TERM-KILLIn any case in the end you would like to see:[1]+  Terminated              ./jobAnd this is done again by jobs command.