Changes

Jump to: navigation, search

Tutorial8: Links / Process Management

204 bytes added, 13:32, 5 February 2020
INVESTIGATION 2: MANAGING PROCESSES
# Issue the following Linux command: <span style="color:blue;font-family:courier;font-weight:bold">bg</span><br><br>'''NOTE:''' You can use the bg command WITHOUT arguments to specify the most recent process<br>that was placed into the background. From the '''jobs''' command, the process that has a plus sign "+"<br>indicates the most recent process placed into the background.<br><br>
# Issue the following Linux command: <span style="color:blue;font-family:courier;font-weight:bold">jobs</span><br><br>You should see the following output similar that was displayed above:<br><span style="font-family:courier;font-weight:bold">[1]+ sleep 700 &</span><br><br>This display indicates that this process in the background is running in the background<br>(denoted by the ampersand character "&"). Now the command is counting-down to zero.<br><br>
# Issue the following Linux command: <span style="color:blue;font-family:courier;font-weight:bold">fg</span><br><br>You should notice that the sleep command is now running in the foreground.<br><br>'''NOTE:''' You can use run commands with ampersand "&" to run processes in the fg command WITHOUT arguments background.<br><br> # Press the key combination: <span style="color:blue;font-family:courier;font-weight:bold">&lt;ctrl&gt;&lt;c&gt;</span> to specify stop the most recent processrunning in the foreground.<br>that was placed into <br> # Issue the background. From following Linux command: <span style="color:blue;font-family:courier;font-weight:bold">sleep 500 & sleep 600 & sleep 700 &</span><br><br># Issue the '''jobs''' command, the process that has a plus sign "+"<br>indicates the most recent process placed into the background.What do you notice?<br><br># x
13,017
edits

Navigation menu