LFCS Essential Commands Practice Question
Which TWO commands can be used to display the contents of a text file page by page? (Select two.)
⚠ Common exam trap
The trap here is that candidates might confuse `cat` (which dumps all content) with a pager, or think `head` or `tail` can show the entire file page by page, but they only show a fixed number of lines from the beginning or end.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
more file.txt
The `more` command displays the contents of a text file one screen at a time, pausing after each page and waiting for user input (e.g., pressing the spacebar) to continue. This makes it a classic pager utility for viewing files page by page.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
cat file.txt
Why it's wrong here
Outputs entire file at once.
- ✗
head file.txt
Why it's wrong here
Shows only the first 10 lines.
- ✓
more file.txt
Why this is correct
Allows paging forward.
- ✓
less file.txt
Why this is correct
Allows backward and forward navigation.
- ✗
tail file.txt
Why it's wrong here
Shows only the last 10 lines.
Go deeper
Related to this question
About these practice questions
This LFCS question is part of Courseiva's 507-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This LFCS practice question is part of Courseiva's free Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LFCS exam.