In this article i am gone to share Operating Systems Fundamentals Module 3 | Working with Text Files Graded Assessment Answers with you..
Working with Text Files Graded Assessment Answers
Question 1)
In the Vim editor, what key allows you to switch to insert mode and enter text to the left of the cursor? (Please type only one letter in lower case. Example: z)
Answer: i
Question 2)
You need to search for all the files that end in .txt in the /home/user/Desktop directory. The working directory is the /home/user/Desktop directory. In a shell prompt, you are composing the following command:
ls _____.txt
What character should be entered in the blank space to search for all files that end in .txt? (Please type only one character.)
Answer: ls *.txt
Question 3)
You have been asked to redirect the output from the ls command to a text file named output.txt. You compose the following command:
ls ____ output.txt
Please enter the symbol that should be typed in the blank space. (Please type only one symbol.)
Answer: ls > output.txt
Question 4)
You need to delete a file named data.txt from the /home/user/Desktop directory. The working directory is /home/user/Desktop. 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: rm data.txt
0 Comments