How to use the head and tail commands: 2-Minute Linux Tips

Interactive Video
•
Architecture
•
University
•
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
Similar Resources on Wayground
6 questions
Bash Shell Scripting- Commands to read a file content with conditions

Interactive video
•
University
3 questions
Bash Shell Scripting- Commands to read a file content with conditions

Interactive video
•
University
2 questions
Linux Fundamentals - Reading Files

Interactive video
•
University
6 questions
Linux Operating System: A Complete Linux Guide for Beginners - Pipe and sed

Interactive video
•
University
2 questions
Linux Administration Bootcamp: Go from Beginner to Advanced - Viewing Files and the Nano Editor

Interactive video
•
University
8 questions
CompTIA Security+ Certification SY0-601: The Total Course - Linux Command-Line Tools

Interactive video
•
University
8 questions
Linux Operating System: A Complete Linux Guide for Beginners - Printing Contents of Files

Interactive video
•
University
2 questions
Bash Shell Scripting - Assignment - passwd

Interactive video
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Architecture
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University