1. Write a shell script to perform the following tasks: a. Redirect all running processes information to a text file. b.

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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.

Post by answerhappygod »

1 Write A Shell Script To Perform The Following Tasks A Redirect All Running Processes Information To A Text File B 1
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 41 times
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
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply