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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started