Question: 1. Write a shell script to perform the following tasks: a. Redirect all running processes information to a text file. b. Get a PID
1. Write a shell script to perform the following tasks: a. Redirect all running processes information to a text file. b. Get a PID from the user and kill the process based on the given PID. c. Display all running processes and get the user to enter a process name. Use the killall to kill all processes with the given process name. d. Show all processes run by different users. Prior to this, you'll need to run a few terminals and switch user (su) to execute the programs. Provide the shell script along with the sample output screenshot. Refer to the attached rubrics as a guide. Print a copy of the rubrics to be attached with this lab report (25 marks
Step by Step Solution
There are 3 Steps involved in it
It looks like youre asking for a shell script that can perform a series of tasks related to process management on a Unixlike operating system While I ... View full answer
Get step-by-step solutions from verified subject matter experts
