Can you please help me with this lab. I have attached all files below. Please check This
Fantastic news! We've Found the answer you've been seeking!
Question:
Can you please help me with this lab. I have attached all files below. Please check This is a Linux lab
Transcribed Image Text:
Comprehensive Review Lab #1 Azure Labs, Version 1.1 Please perform the following operations. Please be sure to include your answer in the space provided where appropriate. Please post any questions to the Discussion Board. Please do all work in the appropriate assignment directory as indicated below. You will be submitting the directory, your command history, and this worksheet (all in a single gzipped tar archive) when you are done. You will also be submitting 3 screen captures of your progress at various points in the lab. Point values are found next to each question. The total possible points for this assignment is 106 points. Any points over 100 are extra credit. Any assignments submitted without a history or screen captures will not be accepted. Please email me if you have questions or concems about your command history. 1. (4 pts) At this point you should have untarred and unzipped this file and the entire assignment directory. Congratulations! What command or commands did you use to untar and unzip this assignment directory? Star -xvf ComprehensiveReviewLab1ALv1_1.tar 2. (4 pts) Rename the assignment directory from Comprehensive ReviewLab1 to YOURFULLNAME (this should be your actual name). Please indicate the command used to complete this task. From now on I will refer to this directory as YOURFULLNAME sorry at first I haven't read it through fully, so I make a change which I'm not supposed to but after that have fixed my wrong so I kept it here. $mw ComprehensiveReviewLab1README.txt MdNayem Hossain.txt $my ComprehensiveReviewLab1 MdNayemHossain I this is what I suppose to at the first time. # (5 pts) SCREEN CAPTURE #1: TO VERIFY EACH STUDENT IS WORKING INDEPENDENTLY. FIRST. RUN THE FOLLOWING COMMAND REPLACING COLLEGEUSERID WITH YOUR ACTUAL COLLEGE USER ID. $ acho "1006727" NOW DO AN "Is-I* SHOWING THE YOURFULLNAME DIRECTORY NOW THAT IT HAS BEEN RENAMED (THIS SHOULD SHOW THE RESULTS OF QUESTIONS 1 AND 2 ABOVE). TAKE A SCREEN CAPTURE OF BOTH THE ECHO COMMAND AND LS-L COMMAND OUTPUT AND SUBMIT IT TO BLACKBOARD ALONG WITH THIS ASSIGNMENT. # 3. (4 pts) Create a new directory in the YOURFULLNAME directory called ALCompReview. What command did you use to do this? $mkdir ALCompReview 4. (4 pts) Copy all of the items from the AssignmentFiles directory into the new directory named ALCompReview you created in question #3. What command did you use to do this? $cp-r AssignmentFiles ALCompReview 5. (4 pts) Since you now have a copy of the files in the AssignmentFlles directory, the folder and its contents are no longer required. Delete the original AssignmentFiles directory and its contents. What command did you use to do this? $rm -r AssignmentFiles 6. (6 pts) There is a file in the new directory named ALCompReview called FixMeWithSed.txt. Use the sed command to replace all of the characters in the file with nothing (remove them) so that it reads correctly. Redirect this output to a new file called FileFixed WithSed.txt. What command did you use to do this? $ 7. (6 pts) Run the "dmesg" command. Use grep to filter and then redirect just the lines with the word poi in them from the output generated by the command dmesg (note that pci should be in all lowercase). Redirect this output to a file at the path ALCompReview/DmesgOutput.txt. What command did you use to do this? If there is no output, choose another word to grep for in the output of this command and substitute that for Ubuntu. $ 8. (2 pts) What size is the DmesgOutput.txt file you just created in step 7 above? What command did you use to determine this? $ # (5 pts) SCREEN CAPTURE #2: TO VERIFY EACH STUDENT IS WORKING INDEPENDENTLY. FIRST, RUN THE FOLLOWING COMMAND REPLACING COLLEGEUSERID WITH YOUR ACTUAL COLLEGE USER ID. $ echo "COLLEGEUSERID" NOW DO AN "Is-1" SHOWING THE STATE OF THE ALCompReview AT THIS POINT IN THE LAB (THIS SHOULD SHOW THE RESULTS OF QUESTIONS 3 AND 8 ABOVE). TAKE A SCREEN CAPTURE OF BOTH THE ECHO COMMAND AND LS -L COMMAND OUTPUT AND SUBMIT IT TO BLACKBOARD ALONG WITH THIS ASSIGNMENT. # 9. (6 pts) Run the find command found below on the first prompt. This command searches all the files on the system that have the word fack (fsck is the filesystem check command) in them. Output the results, without any errors, into a file at the path ALCompReview FindOutput.txt What command did you use to do this? Note that you don't want errors in the file. How can you specify that you only want to redirect the standard output and not the standard error stream? Do you need to do anything special here? $ find/-name "fack" $ 10. (4 pts) Create a file using vi called MYINFO and put it in the YOURFULLNAME assignment directory. Type your name in the file and then save it. You don't need to put anything in this space. I will review this file when your lab is submitted. 11. (4 pts) Now use the "date" command and use redirection to APPEND today's date to the MYINFO file created in step 10 (you want to append to the end of the file, not overwrite your name). What command did you use to do this? $ 12. (6 pts) Create a hard link to the file called MYINFO you created in step 10. Call the link azurehardlink.In. What command did you use to do this? Now create a soft link to the file called MYINFO you created in step 10. Call the link azuresoftlink.In. What command did you use to do this? $ $ # (5 pts) SCREEN CAPTURE #3: TO VERIFY EACH STUDENT IS WORKING INDEPENDENTLY. FIRST, RUN THE FOLLOWING COMMAND REPLACING COLLEGEUSERID WITH YOUR ACTUAL COLLEGE USER ID. $ echo "COLLEGEUSERID" # NOW DO AN "Is-I" SHOWING THE INFORMATION ABOUT ALL OF THE ITEMS IN THE YOURFULLNAME AND ALCompReview DIRECTORIES AT THIS POINT IN THE LAB (THIS SHOULD SHOW THE RESULTS OF QUESTIONS 9 THROUGH 12 ABOVE). TAKE A SCREEN CAPTURE OF BOTH THE ECHO COMMAND AND LS -L COMMAND OUTPUT AND SUBMIT IT TO BLACKBOARD ALONG WITH THIS ASSIGNMENTA 13. (4 pts) Change the permission of the CompReview directory so that the owner of the directory and the group associated with the directory can access, read, and write the directory. All other users should have no rights. What is the full command you used to do this? $ 14. (4 pts) The command to show how much disk space a directory is using is du. Use the man page to figure out how to use the du command to show a summary of the total amount of space the /boot directory takes up on the system. Be sure to use the option to display this in megabyles (also known as human readable form). What is the full command you used to do this? $ 15. (4 pts) Review the man page for the "sort" command. Sort the contents of the leto/passwd file by username (the first item in each row) and save this sorted file to the path CompReview/Sorted PasswordFile.txt $ 16. (6 pts) First, using the grep or egrep command, what would be the full command (including regular expression) to view only the lines in the file /boot/grub/grub.cfg that begin with a hashtag (the #sign). $ Second, using the grep or egrep command, what would be the full command (including regular expression) to view only the lines in the file /boot/grub/grub.cfg that DO NOT begin with a hashtag (the sign). In other words, what would be the command and/or regular expression to return the complete opposite of the previous command? Check the man page for grep because you may find a quick solution! There are several possible answers here. $ 17. (4 pts) How do you hide a file from the regular Is or ls -l commands? In other words, how can you make it so a file or directory does not display using the "regular" Is commands and can only be viewed when using the Is-a. Explain what makes a file or directory "hidden" and then list the command you would use to see all hidden files. Explain: 18. (2 pts) Use touch to create a file in the YOURFULLNAME working directory called COMPLETE.txt. $ 19. (5 pts) Redirect your full history to a file called myhistory.txt and include that in your YOURFULLNAME assignment directory. This will help me see how you progressed while completing this assignment and make sure you actually did complete the work above. Use the following command to do this. I will be able to view this when I grade your full assignment to verify the work was completed. Please don't clean up your history. I realize that history might be incomplete due to working on this over several days. $ history > myhistory.txt 20. (8 pts) of the files this gzipped Tar and gzip the entire YOURFULLNAME working directory (this includes all and directories you created and manipulated during this assignment). Submit tar archive to Blackboard. You should also include this text file, with your answers in it, in that tarred and gzipped directory. For this assignment you should submit the 3 required screen captures and the gzipped tar archive of every task you performed for this lab including this answer file. Blackboard will allow you to upload multiple files (the screen captures and gzipped tar archive). You will need to use your SFTP program to first download this tar and gzipped file to your local computer so you can upload it through Blackboard along with the screen captures. Fix MeWithSed.txt. I am a file to be edited. A unique file with my own words. There arei's's'u'e's with thi's fine. But this line is fine. Hello. ThisFilelsHereForNoReason.txt This file is just here to take up space for Fall 2021! T Comprehensive Review Lab #1 Azure Labs, Version 1.1 Please perform the following operations. Please be sure to include your answer in the space provided where appropriate. Please post any questions to the Discussion Board. Please do all work in the appropriate assignment directory as indicated below. You will be submitting the directory, your command history, and this worksheet (all in a single gzipped tar archive) when you are done. You will also be submitting 3 screen captures of your progress at various points in the lab. Point values are found next to each question. The total possible points for this assignment is 106 points. Any points over 100 are extra credit. Any assignments submitted without a history or screen captures will not be accepted. Please email me if you have questions or concems about your command history. 1. (4 pts) At this point you should have untarred and unzipped this file and the entire assignment directory. Congratulations! What command or commands did you use to untar and unzip this assignment directory? Star -xvf ComprehensiveReviewLab1ALv1_1.tar 2. (4 pts) Rename the assignment directory from Comprehensive ReviewLab1 to YOURFULLNAME (this should be your actual name). Please indicate the command used to complete this task. From now on I will refer to this directory as YOURFULLNAME sorry at first I haven't read it through fully, so I make a change which I'm not supposed to but after that have fixed my wrong so I kept it here. $mw ComprehensiveReviewLab1README.txt MdNayem Hossain.txt $my ComprehensiveReviewLab1 MdNayemHossain I this is what I suppose to at the first time. # (5 pts) SCREEN CAPTURE #1: TO VERIFY EACH STUDENT IS WORKING INDEPENDENTLY. FIRST. RUN THE FOLLOWING COMMAND REPLACING COLLEGEUSERID WITH YOUR ACTUAL COLLEGE USER ID. $ acho "1006727" NOW DO AN "Is-I* SHOWING THE YOURFULLNAME DIRECTORY NOW THAT IT HAS BEEN RENAMED (THIS SHOULD SHOW THE RESULTS OF QUESTIONS 1 AND 2 ABOVE). TAKE A SCREEN CAPTURE OF BOTH THE ECHO COMMAND AND LS-L COMMAND OUTPUT AND SUBMIT IT TO BLACKBOARD ALONG WITH THIS ASSIGNMENT. # 3. (4 pts) Create a new directory in the YOURFULLNAME directory called ALCompReview. What command did you use to do this? $mkdir ALCompReview 4. (4 pts) Copy all of the items from the AssignmentFiles directory into the new directory named ALCompReview you created in question #3. What command did you use to do this? $cp-r AssignmentFiles ALCompReview 5. (4 pts) Since you now have a copy of the files in the AssignmentFlles directory, the folder and its contents are no longer required. Delete the original AssignmentFiles directory and its contents. What command did you use to do this? $rm -r AssignmentFiles 6. (6 pts) There is a file in the new directory named ALCompReview called FixMeWithSed.txt. Use the sed command to replace all of the characters in the file with nothing (remove them) so that it reads correctly. Redirect this output to a new file called FileFixed WithSed.txt. What command did you use to do this? $ 7. (6 pts) Run the "dmesg" command. Use grep to filter and then redirect just the lines with the word poi in them from the output generated by the command dmesg (note that pci should be in all lowercase). Redirect this output to a file at the path ALCompReview/DmesgOutput.txt. What command did you use to do this? If there is no output, choose another word to grep for in the output of this command and substitute that for Ubuntu. $ 8. (2 pts) What size is the DmesgOutput.txt file you just created in step 7 above? What command did you use to determine this? $ # (5 pts) SCREEN CAPTURE #2: TO VERIFY EACH STUDENT IS WORKING INDEPENDENTLY. FIRST, RUN THE FOLLOWING COMMAND REPLACING COLLEGEUSERID WITH YOUR ACTUAL COLLEGE USER ID. $ echo "COLLEGEUSERID" NOW DO AN "Is-1" SHOWING THE STATE OF THE ALCompReview AT THIS POINT IN THE LAB (THIS SHOULD SHOW THE RESULTS OF QUESTIONS 3 AND 8 ABOVE). TAKE A SCREEN CAPTURE OF BOTH THE ECHO COMMAND AND LS -L COMMAND OUTPUT AND SUBMIT IT TO BLACKBOARD ALONG WITH THIS ASSIGNMENT. # 9. (6 pts) Run the find command found below on the first prompt. This command searches all the files on the system that have the word fack (fsck is the filesystem check command) in them. Output the results, without any errors, into a file at the path ALCompReview FindOutput.txt What command did you use to do this? Note that you don't want errors in the file. How can you specify that you only want to redirect the standard output and not the standard error stream? Do you need to do anything special here? $ find/-name "fack" $ 10. (4 pts) Create a file using vi called MYINFO and put it in the YOURFULLNAME assignment directory. Type your name in the file and then save it. You don't need to put anything in this space. I will review this file when your lab is submitted. 11. (4 pts) Now use the "date" command and use redirection to APPEND today's date to the MYINFO file created in step 10 (you want to append to the end of the file, not overwrite your name). What command did you use to do this? $ 12. (6 pts) Create a hard link to the file called MYINFO you created in step 10. Call the link azurehardlink.In. What command did you use to do this? Now create a soft link to the file called MYINFO you created in step 10. Call the link azuresoftlink.In. What command did you use to do this? $ $ # (5 pts) SCREEN CAPTURE #3: TO VERIFY EACH STUDENT IS WORKING INDEPENDENTLY. FIRST, RUN THE FOLLOWING COMMAND REPLACING COLLEGEUSERID WITH YOUR ACTUAL COLLEGE USER ID. $ echo "COLLEGEUSERID" # NOW DO AN "Is-I" SHOWING THE INFORMATION ABOUT ALL OF THE ITEMS IN THE YOURFULLNAME AND ALCompReview DIRECTORIES AT THIS POINT IN THE LAB (THIS SHOULD SHOW THE RESULTS OF QUESTIONS 9 THROUGH 12 ABOVE). TAKE A SCREEN CAPTURE OF BOTH THE ECHO COMMAND AND LS -L COMMAND OUTPUT AND SUBMIT IT TO BLACKBOARD ALONG WITH THIS ASSIGNMENTA 13. (4 pts) Change the permission of the CompReview directory so that the owner of the directory and the group associated with the directory can access, read, and write the directory. All other users should have no rights. What is the full command you used to do this? $ 14. (4 pts) The command to show how much disk space a directory is using is du. Use the man page to figure out how to use the du command to show a summary of the total amount of space the /boot directory takes up on the system. Be sure to use the option to display this in megabyles (also known as human readable form). What is the full command you used to do this? $ 15. (4 pts) Review the man page for the "sort" command. Sort the contents of the leto/passwd file by username (the first item in each row) and save this sorted file to the path CompReview/Sorted PasswordFile.txt $ 16. (6 pts) First, using the grep or egrep command, what would be the full command (including regular expression) to view only the lines in the file /boot/grub/grub.cfg that begin with a hashtag (the #sign). $ Second, using the grep or egrep command, what would be the full command (including regular expression) to view only the lines in the file /boot/grub/grub.cfg that DO NOT begin with a hashtag (the sign). In other words, what would be the command and/or regular expression to return the complete opposite of the previous command? Check the man page for grep because you may find a quick solution! There are several possible answers here. $ 17. (4 pts) How do you hide a file from the regular Is or ls -l commands? In other words, how can you make it so a file or directory does not display using the "regular" Is commands and can only be viewed when using the Is-a. Explain what makes a file or directory "hidden" and then list the command you would use to see all hidden files. Explain: 18. (2 pts) Use touch to create a file in the YOURFULLNAME working directory called COMPLETE.txt. $ 19. (5 pts) Redirect your full history to a file called myhistory.txt and include that in your YOURFULLNAME assignment directory. This will help me see how you progressed while completing this assignment and make sure you actually did complete the work above. Use the following command to do this. I will be able to view this when I grade your full assignment to verify the work was completed. Please don't clean up your history. I realize that history might be incomplete due to working on this over several days. $ history > myhistory.txt 20. (8 pts) of the files this gzipped Tar and gzip the entire YOURFULLNAME working directory (this includes all and directories you created and manipulated during this assignment). Submit tar archive to Blackboard. You should also include this text file, with your answers in it, in that tarred and gzipped directory. For this assignment you should submit the 3 required screen captures and the gzipped tar archive of every task you performed for this lab including this answer file. Blackboard will allow you to upload multiple files (the screen captures and gzipped tar archive). You will need to use your SFTP program to first download this tar and gzipped file to your local computer so you can upload it through Blackboard along with the screen captures. Fix MeWithSed.txt. I am a file to be edited. A unique file with my own words. There arei's's'u'e's with thi's fine. But this line is fine. Hello. ThisFilelsHereForNoReason.txt This file is just here to take up space for Fall 2021! T
Expert Answer:
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these computer network questions
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
The town of Eden Bay owns and maintains a feet of vehicles. You are a systems analyst reporting to Dawn, the town's IT manager. Background Eden Bay is a medium-sized municipality. The town has grown...
-
Establish procedures to guarantee substantiation of claims for allowances. Think about how you would set up a process to ensure employee claims and allowances could be claimed. Write a step by step...
-
The Downer family has owned Downer's Dairy Farm for generations. The farm totals approximately 800 acres of land. Until this year, John and his oldest son, Jack, managed the farm. John, a widower,...
-
N-Pentane is burned with excess air in a continuous combustion chamber. (a) A technician runs an analysis and reports that the product gas contains 0.270 mole% pentane. 5.3% oxygen, 9.1% carbon...
-
Brown India Limited manufactures office tables. Normal capacity of the factory is 60,000 tables per annum. Following are the cost and inventory details for the year 200506. Required: Carry out the...
-
Which of the two common approaches used to account for by-product/scrap provides better information to management? Discuss the rationale for your answer.
-
2022 792000 20% 2023 948000 15% The installment income is Crane's only temporary difference. What amount shoul Crane's December 31, 2020 balance sheet?
-
1. Explain the differences between an asset retirement obligation and an environmental obligation. 2. When an an asset retirement obligation is recorded on the balance sheet, the following entry is...
-
Consider the scheduling algorithm in the Solaris operating system for time-sharing threads. What is the time quantum (in milliseconds) for a thread with priority 15? With priority 40? Assume that a...
-
The German auto giant, Volkswagen, has chosen St. Thomas, Ontario as the site of its first battery factory outside of Europe. (Globe and Mail, March 2023). (10 Marks) Identify the elements of...
-
What were the average real hourly wage and employment rates in 1979 and 1995 in the retail trade and mining and logging industries? What were the percentage changes in the wage rate and employment...
-
Today I want to show you how to bake a homemade apple pie. We will gather our ingredients, make the crust, add the filling and bake it to perfection. The preceding is an example of a ( n ) attention...
-
(ii) Briefly describe the unconventional policy of quantitative tightening (tapering)? How is it different or similar to our conventional understanding of a contractionary monetary policy through the...
-
Consider the simply supported beam shown below. The beam is loaded by a triangularly distributed load with value zero (at the left pin support) and maximum value W = 11.6 kN/m (at a distance 8m from...
-
Which of the following gives the range of y = 4 - 2 -x ? (A) (- , ) (B) (- , 4) (C) [- 4, ) (D) (- , 4] (E) All reals
-
John Williams (age 42) is a single taxpayer, and he lives at 1324 Forest Dr., Reno, NV 89501. His Social Security number is 555-94-9358. John's earnings and withholdings as the manager of a local...
-
Robert Ramos (age 36) is a single taxpayer, living at 8765 Bay Dr., Monterey, CA 93940. His Social Security number is 976-23-5132. Robert's earnings and income tax withholding as the manager of a...
-
Sherry Hopson owns a retail family clothing store. Her store is located at 4321 Circle Drive, Houston, TX 77001. Her employer identification number is 95- 1234321 and her Social Security number is...
-
Consider two alternatives, each of which will accomplish the same EPA-mandated pollution control. Using an incremental IRR analysis, determine the preferred alternative assuming MARR is 20...
-
The production department of Zunni's Manufacturing is considering two numerically controlled drill presses; one must be selected. Comparison data is shown in the table below. MARR is 10 percent/year....
-
Determine whether each of the following is true or false. In each case, assume \(P\) is located at \(t=0\) and \(F\) is located at \(t=n\), and the \(A\) s are spread uniformly over the planning...
Study smarter with the SolutionInn App