Question: Write a bash script called minips.sh. This script will look at each numbered directory in the /proc directory and for each process print the running
Write a bash script called minips.sh. This script will look at each numbered directory in the /proc directory and for each process print the running program's name name, its process id, and its current state. You can find the name and state of a process in /proc//status. You may notice that there are some errors involving processes that disappear too fast to look at their status files. That is fine, just pipe the errors to /dev/null. Use functions to break up the different parts of the script. You will likely need to use file processing tools you learned in earlier labs to extract the needed information.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
