
How to use the head and tail commands: 2-Minute Linux Tips
Interactive Video
•
Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default number of lines displayed by the head command?
5 lines
15 lines
20 lines
10 lines
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which command would you use to see the last lines of a file?
tail
head
cat
grep
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you view the most recently updated files in a directory using tail?
By using tail with the -f option
By piping the output of ls -lt to tail
By using tail with the -r option
By using tail with the -n option
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What can you select with the head and tail commands besides lines?
Words
Bytes
Paragraphs
Characters
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If you want to display the first 10 characters of a file, which command would you use?
tail -n 10
tail -c 10
head -c 10
head -n 10
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?