pleas I need an answers for these questions Document Preview: Part 1 Suppose that a user at your site has started a long-running process that is consuming a significant fraction of a machines resources. (Source: Exercise E5.2 from the textbook) 1. How would you recognize and identify a process that is hogging resources? System monitoring helps you head off potential problems and find the root cause of full-blown issues. If your computer is running slowly, you can use the tricks presented in this chapter to investigate the problem. You might find that one application is using all of the memory or that the processor is being hogged by an application that isnt responding. System monitoring also helps build your overall understanding of the system by letting you see whats going on under the hood. 2. Assume that the misbehaving process might be legitimate and should not be killed. Show the commands you would use to suspend the process temporarily while you investigate. 3. Later, you discover that the process belongs to your boss and must continue running. Show the commands you would use to continue running the process. 4. Alternatively, assume that the process needs to be killed. What command would you use and why? What if you needed to guarantee that the process died? Part 2 Login to your system and perform the following tasks. Write the command that you used to perform each task. TASK 1: Create a directory named HOMEWORK4DIR. TASK 2: Inside the HOMEWORK4DIR create an empty file named HOMEWORK4. TASK 3: What are the permissions on HOMEWORK4? Open the file HOMEWORK4 in a text editor and add the text: This is important information that I do not want to lose. TASK 4: Remove the write permission from the HOMEWORK4 file from every user including yourself. TASK 5: Remove the HOMEWORK4 file. Show the command you used and all that you had to do. Use a text editor to create the following shell script and save it as HW4SCRIPT: #!/bin/sh echo SCRIPT FOR HOMEWORK 4 TASK Attachments: IT15104.doc; pleas I need an answers for these questions Document Preview: Part 1 Suppose that a user at your site has started a long-running process that is consuming a significant fraction of a machines resources. (Source: Exercise E5.2 from the textbook) 1. How would you recognize and identify a process that is hogging resources? System monitoring helps you head off potential problems and find the root cause of full-blown issues. If your computer is running slowly, you can use the tricks presented in this chapter to investigate the problem. You might find that one application is using all of the memory or that the processor is being hogged by an application that isnt responding. System monitoring also helps build your overall understanding of the system by letting you see whats going on under the hood. 2. Assume that the misbehaving process might be legitimate and should not be killed. Show the commands you would use to suspend the process temporarily while you investigate. 3. Later, you discover that the process belongs to your boss and must continue running. Show the commands you would use to continue running the process. 4. Alternatively, assume that the process needs to be killed. What command would you use and why? What if you needed to guarantee that the process died? Part 2 Login to your system and perform the following tasks. Write the command that you used to perform each task. TASK 1: Create a directory named HOMEWORK4DIR. TASK 2: Inside the HOMEWORK4DIR create an empty file named HOMEWORK4. TASK 3: What are the permissions on HOMEWORK4? Open the file HOMEWORK4 in a text editor and add the text: This is important information that I do not want to lose. TASK 4: Remove the write permission from the HOMEWORK4 file from every user including yourself. TASK 5: Remove the HOMEWORK4 file. Show the command you used and all that you had to do. Use a text editor to create the following shell script and save it as HW4SCRIPT: #!/bin/sh echo SCRIPT FOR HOMEWORK 4 TASK Attachments: IT15104.doc
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]