 This video is part of a series be sure to check out the description of the video for a link to the full playlist I recommend watching the previous videos and We're just continuing with some basic shell script commands here So we're gonna look at putting processes in the background and then bring them back to the foreground I'm gonna use an example here Top top is command you probably have installed on your system and it shows you your running processes Well some other system information. I can hit Q on my keyboard to quit out of that Control L to clear the screen But let's say I wanted to just suspend that in the background I can press type top and I can press control Z and it puts it in the background You can see the process number and the background number here And I continue doing other stuff blah blah blah when I'm done And I want to bring top back to the foreground. I can type in FG for foreground and there it is it's still running I can then again press control Z to suspend it in the background and I can now also say Sleep for one minute that's sleeping for me. I can press control Z to suspend that in the background Now I have two processes suspended in the background. How do I bring them back to the foreground? Well, if I type in FG and press enter it's gonna bring the last one in the list Which is the sleep command I can control C to kill that and then FG to bring up top again And then I can press Q out of that now as I've mentioned previous videos I'm running a Z shell and I seem to be having an issue with my foreground command So again, if I run top control Z to background that process Sleep for one minute and then control Z to background that process I should be able to type in FG and one since that's the background process number And it should bring that job to the front, but it's not and I should be able to do two and it should bring the other process to the front it doesn't so FG brings without any number brings the last process and I can do FG again to bring top So that seems to be an issue with my I don't know if it's Z shell in general or my setup But what I can do here is I'll just start up bash to give you an example how it's supposed to work So now I can type in top control Z to throw that in the background sleep For one minute and throw that in the background. I need to start another process called H top, which is a bit nicer Variation of top controls you to throw that in the background. So now I got three processes suspended in the background So what I can do now is I can do FG if I want to go to top which was process one I can do one and it brings that up and I can quit out of that I Can do FG and I can do to which bring me to my sleep process, which is was stopped And is now running and I can do FG and three and that will bring me back to H top So for some reason my setup Z shell it isn't working like that. That's how it's supposed to work though And that is one way to throw a process in the background using control Z So I hope you enjoyed this video be sure to check out the full playlist again link in the description of the video As always, I hope that you have a great day