Note: have a Linux terminal open while taking this quiz, so that you can test each command on a live system 🙂
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)
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
Display the first 12 lines of /etc/services
CorrectIncorrect -
Question 2 of 12
2. Question
Display the last line of /etc/passwd
CorrectIncorrect -
Question 3 of 12
3. Question
Use cat to create a file named count.txt that looks like this:
One Two Three Four Five
CorrectIncorrect -
Question 4 of 12
4. Question
Use cp to make a backup of this file to cnt.txt
CorrectIncorrect -
Question 5 of 12
5. Question
Use cat to make a backup of this file to catcnt.txt
CorrectIncorrect -
Question 6 of 12
6. Question
Display catcnt.txt, but with all lines in reverse order (the last line first).
CorrectIncorrect -
Question 7 of 12
7. Question
Use more to display /etc/services
CorrectIncorrect -
Question 8 of 12
8. Question
Display the readable character strings from the /usr/bin/passwd command
CorrectIncorrect -
Question 9 of 12
9. Question
Use ls to find the biggest file in /etc
CorrectIncorrect -
Question 10 of 12
10. Question
Open two terminal windows (or tabs) and make sure you are in the same directory in both. Type echo this is the first line > tailing.txt in the first terminal, then issue tail -f tailing.txt in the second terminal. Now go back to the first terminal and type echo This is another line >> tailing.txt (note the double >>), verify that the tail -f in the second terminal shows both lines. Stop the tail -f with Ctrl-C
CorrectIncorrect -
Question 11 of 12
11. Question
Use cat to create a file named tailing.txt that contains the contents of tailing.txt followed by the contents of /etc/passwd
CorrectIncorrect -
Question 12 of 12
12. Question
Use cat to create a file named tailing.txt that contains the contents of tailing.txt preceded by the contents of /etc/passwd
CorrectIncorrect