CompTIA Linux+ (XK0-004) Performanced-Based Questions #4
Anastasia-Instructor September 4, 2022
Quiz Summary
0 of 12 Questions completed
Questions:
Information
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Results
Results
0 of 12 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
Average score |
|
Your score |
|
Categories
- Not categorized 0%
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- Current
- Review
- Answered
- Correct
- Incorrect
-
Question 1 of 12
1. Question
Type the command to view the Internet Protocol (IP) configuration on a Linux host.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 2 of 12
2. Question
You are working at a Linux command prompt. You need to capture and analyze packets from the ethernet interface 0 using the tcpdump command. Type the command to start capturing the packets.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 3 of 12
3. Question
You need to perform a nmap scan using the hostname server1.dojolab.org to find out all open ports, services and MAC address on that system. Type the command to initiate the scan.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 4 of 12
4. Question
You are working at a Linux command prompt. You need to find the A record from the website dojolab.org to troubleshoot DNS-related issues. Type the command to display the records from the dojolab DNS server.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 5 of 12
5. Question
You are working at a Linux command prompt. Type the command to search all lines that end with “done” in a file named tasks.doc.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 6 of 12
6. Question
You are working at a Linux command prompt. Type the command to search all lines that start with “hello” in a file named greetings.txt.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 7 of 12
7. Question
You are working at a Linux command prompt. Set the permissions of file.txt to “owner can read and write; group can read only; others can read only” using octal permissions notation.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 8 of 12
8. Question
You need to search and display the total number of times that the tag “h1” appears in a file named main.html using grep. Type the Linux command for it.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 9 of 12
9. Question
You are working at a Linux command prompt. You have been tasked to view the last 50 lines of a log file named logfile.txt. Type the command to complete the task.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 10 of 12
10. Question
You have been tasked to present the content of two log files. First, you need to display the content of the file named logfile1.txt and then the content of the file named logfile2.txt. Type the command to display the content of the two files.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 11 of 12
11. Question
Type the command to retrieve only email-related DNS records for the domain dojolab.org using the -query=mx option.
-
student@dojolab:~$
CorrectIncorrect -
-
Question 12 of 12
12. Question
You want to capture HTTP packets using tcpdump. The HTTP service is running on its default port and your Ethernet adapter is eth1. Type the command to capture the packets.
-
student@dojolab:~$
CorrectIncorrect -