Performance Assessment Tasks Note: Linux is case sensitive. All tasks below assume you are able to understand and apply this. If you are told to create a file myFile and you instead create MyFile – you will not get credit. Filles and directories need to be created in the correct paths. In all the tasks below, replace studentId with your own studentID (all lowercase – jesjon1984 not JesJon1984 or any other variants of spelling) Do not execute the Final Exam tasks on any other VM or you will have to start over. Be logged in as student with Password1 in the CIS206-Exam VM Complete the following tasks – these will total to maximum 75 points: 1. Install the nmap software package 2. Under the student user home (/home/student) directory, create a directory named studentIDFinalExam 3. Create a directory within studentIDFinalExam called PracticalExam 4. Under the student home directory, there is a file called baseFile.txt. Make a copy of this file under the PracticalExam directory. The copy should be named studentIDExam.txt 5. Create a group called linuxexam 6. Create a user with your studentID (all lowercase) – the user’s login shell should be /bin/bash and their home directory should be /home/studentID and their primary group should be linuxexam (the default group studentID should NOT be created in this process). Set a password for the user. 7. Add the user studentID to the student group as a secondary group 8. Make studentID the user owner of the file studentIDExam.txt. Make linuxexam the group of the file studentIDExam.txt 9. Change permissions on studentIDExam.txt so the user has read, write, and execute, the group has read and write, and everyone else has only read permission 10. Write a script to meet the following requirements: a) The script is named studentIDExam.sh and is under the /home/student path b) Do not clear the screen anywhere in the script c) Displays the message CIS206 Final Exam (spelling, casing and spacing should match exactly) d) Uses a for loop that cycles trough an array of string with the elements Week_1, Week_2, Week_3, Week_4 and Week_5 e) Inside the for loop, the script displays the values of the elements of the array (Week_1, Week_2, Week_3, Week_4 and Week_5) each on a new line and each of the values is preceded by a single Tab character (spelling, casing and spacing should match exactly) f) After the for loop, the script displays the message End of the course (spelling, casing and spacing should match exactly) g) The script should be able to be executed (and you should execute it, verify its output and adjust as necessary before running the grading script) Script output for reference: 11. Write the command to display memory usage in GB 12. A bash process with PID 6789 is running and this bash process is PID is the PPID of several other processes. Write the command to kill the process with PID 6789 When you have completed/think you have completed the tasks successfully, you can run the grading script by issuing the command sudo ./gradeMe.sh at the terminal prompt. Enter the password Password1 when prompted. The script output should let you know what your grade is. You can attempt to correct issues you find until you are satisfied with your grade and before the submission deadline. Depending on the effect of the commands you issued, you might have to start from the very beginning and recreate the machine (right at the beginning of this document) and might have to go back and look at the Guided Practices and practice those commands some more. Once you are satisfied with your grade, you can take one or more screenshots that capture the output of the entire grading script and include it in your report.

icon
Related questions
Question
Performance Assessment Tasks Note: Linux is case sensitive. All tasks below assume you are able to understand and apply this. If you are told to create a file myFile and you instead create MyFile – you will not get credit. Filles and directories need to be created in the correct paths. In all the tasks below, replace studentId with your own studentID (all lowercase – jesjon1984 not JesJon1984 or any other variants of spelling) Do not execute the Final Exam tasks on any other VM or you will have to start over. Be logged in as student with Password1 in the CIS206-Exam VM Complete the following tasks – these will total to maximum 75 points: 1. Install the nmap software package 2. Under the student user home (/home/student) directory, create a directory named studentIDFinalExam 3. Create a directory within studentIDFinalExam called PracticalExam 4. Under the student home directory, there is a file called baseFile.txt. Make a copy of this file under the PracticalExam directory. The copy should be named studentIDExam.txt 5. Create a group called linuxexam 6. Create a user with your studentID (all lowercase) – the user’s login shell should be /bin/bash and their home directory should be /home/studentID and their primary group should be linuxexam (the default group studentID should NOT be created in this process). Set a password for the user. 7. Add the user studentID to the student group as a secondary group 8. Make studentID the user owner of the file studentIDExam.txt. Make linuxexam the group of the file studentIDExam.txt 9. Change permissions on studentIDExam.txt so the user has read, write, and execute, the group has read and write, and everyone else has only read permission 10. Write a script to meet the following requirements: a) The script is named studentIDExam.sh and is under the /home/student path b) Do not clear the screen anywhere in the script c) Displays the message CIS206 Final Exam (spelling, casing and spacing should match exactly) d) Uses a for loop that cycles trough an array of string with the elements Week_1, Week_2, Week_3, Week_4 and Week_5 e) Inside the for loop, the script displays the values of the elements of the array (Week_1, Week_2, Week_3, Week_4 and Week_5) each on a new line and each of the values is preceded by a single Tab character (spelling, casing and spacing should match exactly) f) After the for loop, the script displays the message End of the course (spelling, casing and spacing should match exactly) g) The script should be able to be executed (and you should execute it, verify its output and adjust as necessary before running the grading script) Script output for reference: 11. Write the command to display memory usage in GB 12. A bash process with PID 6789 is running and this bash process is PID is the PPID of several other processes. Write the command to kill the process with PID 6789 When you have completed/think you have completed the tasks successfully, you can run the grading script by issuing the command sudo ./gradeMe.sh at the terminal prompt. Enter the password Password1 when prompted. The script output should let you know what your grade is. You can attempt to correct issues you find until you are satisfied with your grade and before the submission deadline. Depending on the effect of the commands you issued, you might have to start from the very beginning and recreate the machine (right at the beginning of this document) and might have to go back and look at the Guided Practices and practice those commands some more. Once you are satisfied with your grade, you can take one or more screenshots that capture the output of the entire grading script and include it in your report.
AI-Generated Solution
AI-generated content may present inaccurate or offensive content that does not represent bartleby’s views.
steps

Unlock instant AI solutions

Tap the button
to generate a solution

Similar questions
  • SEE MORE QUESTIONS