Open main menu

CDOT Wiki β

Changes

Tutorial8: Links / Process Management

688 bytes added, 09:19, 5 February 2020
INVESTIGATION 2: MANAGING PROCESSES
# Press the key combination: <span style="color:blue;font-family:courier;font-weight:bold">&lt;ctrl&gt;&lt;c&gt;</span><br><br>You should notice that the process that was running in the foreground has been interrupted (i.e. terminated).<br>'''NOTE:''' The '''ctrl-c''' key combination sends '''SIGINT''' ('''Signal Interrupt''') to terminate a process that is running.<br><br>
# Reissue the Linux command: <span style="color:blue;font-family:courier;font-weight:bold">sleep 200</span><br><br>
# Press the key combination: <span style="color:blue;font-family:courier;font-weight:bold">&lt;ctrl&gt;&lt;z&gt;</span><br><br># You should notice now see output similar to what is displayed below:<br><span style="font-family:courier;font-weight:bold">[1]+ Stopped sleep 200</span><br><br>NOTE: This indicates that the this process that was running in the foreground has been interrupted (iplaced into the background.eThis is useful in order to "free-up" the terminal to run other commands. terminated)<br><br># Clear your bash shell terminal.<br>'''NOTE<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:''' The '''ctrlcourier;font-c''' key combination sends '''SIGINT''' weight:bold">[1]+ Stopped sleep 200</span><br><br>This display indicates that this process ('''Signal Interrupt'''that is now in the background) has stopped. In other words, the sleep command is NOT counting-down to zero to terminate a .<br><br>NOTE: You need to use the bg command to run that process that is runningwas sent into the background.<br><br>
13,420
edits