In this article i am gone to share Operating Systems Fundamentals Module 2 | Managing the File System in Linux Graded Assessment Answers with you..
Managing the File System in Linux Graded Assessment Answers
Question 1)
What command will show you the full path of the working directory? (Remember, commands do not have spaces in them, and they are case sensitive.)
Answer: pwd
Question 2)
You have opened a shell prompt. The working directory is /home. You need to create a new directory named Stuff that will be a sub-directory of /home. What command should you use? (Please type only the command itself. Do not type any switches or keywords. Remember, commands do not have spaces in them, and they are case sensitive. Example: ls )
Answer: mkdir
Question 3)
You have a file named audit.txt. You need to find all of the lines in the file that have the word “failed” in them. What command should you use? (Please type only the command itself. Do not type any switches or keywords. Remember, commands do not have spaces in them, and they are case sensitive. Example: ls )
Answer: get-content audit.txt -ReadCount 1000 | foreach { $_ -match "failed" }
Question 4)
You have a compressed file named Archive.zip. You need to extract all the files in the archive to the working directory. What command should you use? (Please type only the command itself. Do not type any switches or keywords. Remember, commands do not have spaces in them, and they are case sensitive. Example: ls )
Answer: Expand-Archive Archive.zip
0 Comments