Open main menu

CDOT Wiki β

Changes

Tutorial8: Links / Process Management

13 bytes added, 12:26, 25 February 2021
INVESTIGATION 2: MANAGING PROCESSES
# Issue the following Linux command: <span style="color:blue;font-family:courier;font-weight:bold">(sleep 400; sleep 500; sleep 600) &</span><br><br>
# Issue the '''jobs''' command. What do you notice?<br>You should notice all commands are run in a group as just one process.<br><br>
# Issue the following Linux command to terminate the first job:<br><span style="color:blue;font-family:courier;font-weight:bold">kill %1</span><br><br>NOTE: If issuing the kill command does not work, then you would need to send a STRONGER signal <br>to "'''kill'''" (not "''terminate''") the process. The '''SIGKILL''' signal (signal '''#9''') would be required to do this by issuing the '''kill''' command with the option: '''-9'''<br><br>
# Issue the '''jobs''' command and make certain there are no processes that are running in the background.<br><br>
# Issue the following Linux command: <span style="color:blue;font-family:courier;font-weight:bold">ps</span><br><br>What is the PID of the previously issued Linux command in the background?<br><br>
13,420
edits