Question: PART 2: Experiment with managing processes using the process status command, including starting and stopping processes: test the following commands and review their results ps

PART 2: Experiment with managing processes using the process status command, including starting and stopping processes: test the following commands and review their results ps ps -u ps f ps ef ps l ps ax ps f ps u notice all of the fields with the different switches but specifically the PPID and PID. What are the differences between the different options? create the following script using vi named looper: #!/bin/bash COUNT=0 for (( ; ; )) do COUNT=`expr $COUNT + 1` #Notice the backtick does command substitution echo The current loop count is : $COUNT echo ' CRTL-C to stop!' #Notice single verses double quotes done 4. make the script executable with the chmod command 5. copy the script to looper2 using the cp command 6. execute the above 2 scripts individually and watch them run

(example: ./looper ) 7. rerun them a second time and CRTL/C and CRTL/Z during their execution 8. use the ps command to see their status: ps u would be my choice, what is yours? 9. TO HAND IN: Take a screen shot for PART 2 10. review the processes utilizing the top command, utilize some of the interactive commands for top, notice which processes are getting the most system resources (CPU & memory) 11. kill the processes that are no longer running (Stopped or Zombied) using the kill -9 command notice the Process states: Process.States.PNG

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!