- 1 Write A Shell Script To Perform The Following Tasks A Redirect All Running Processes Information To A Text File B 1 (30.77 KiB) Viewed 42 times
1. Write a shell script to perform the following tasks: a. Redirect all running processes information to a text file. b.
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
1. Write a shell script to perform the following tasks: a. Redirect all running processes information to a text file. b.
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