1. Write a shell script to perform the following tasks: a. Redirect all running processes information to a text file. b.
Posted: Fri May 20, 2022 12:02 pm
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