Question: Logs are files updated by the system to include information about events that have occurred. For this lab, find all instances of the string error
Logs are files updated by the system to include information about events that have occurred. For this lab, find all instances of the string "error" located in any of the files in the directory c:usersstudentdocumentsfind lab
For example, if the file c:usersstudentdocumentsfind labsample txt txt contains the following lines:
Example of file output
Your output should contain only Line and Line because they contain the string "error".
First, do this by using Windows Graphical User Interface GUI
Use Windows Explorer to navigate to the desired location c:usersstudentdocumentsfind lab
Open each of the files in Notepad and search for the string error in each of the files.
When you doubleclick a file, most files will automatically, but there are a couple that will ask you what to use on the file, choose Notepad.
In Notepad, choose the Edit menu and select Find
The Find dialog box will appear
Type error in the Find what field.
If your search finds the string "error" in the document, it will highlight the find.
Using the snipping tool to capture total different finds, preferably in different files.
Paste each one in a Word document, with a small description for each.
points each
Now, let's repeat this search in the Command Line Interface CLI
Open a Command Prompt
Press the Start Button, the type cmd
You start in c:usersstudent and we need to move to c:usersstudentdocumentsfind lab
First, let's move one directory down to the Documents folder.
type cd Documents and hit the enter key
Notice the prompt changes from c:usersstudents to c:usersstudentsdocuments
Next, move down one more directory into find lab
type cd "find lab" and hit the enter key
Once again the prompt changes to show the new location
Windows has a built command to search files for a string, findstr
A string is any series of letters and numbers
Use findstr to find all occurrences of error in all files in the current location
Type findstr C:error followed by the enter key
There are spaces between findstr and C:error, also between C:error and
You will see the screen show numerous occurrences of error found in the files.
Grab screenshots of these errors
Also, grab screenshot of the command you typed to find them
Paste all the screenshots in the Word document
After all the errors have been found, at the prompt press the up arrow to see the last command you typed
The screenshots are worth points each.
Lastly, answer and explain the following questions points each.
Which way is easier to find the error GUI or CLI
Which way would be more errorprone?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
