Which Linux command is used to view the last lines of a file? MCQ with Answer and Explanation

Which Linux command is used to view the last lines of a file?
A. head
B. cat
C. less
D. tail
Answer: Option D
Solution (By JKSSB Mock Tests)
tail displays the last few lines of a file; useful for checking recent log entries.

Discuss this Question (0)

No comments yet. Be the first to start the discussion!

Practice More Operating Systems Questions

Question #1
Which of the following is an example of a desktop environment for Linux?
A. Unity
B. Windows Shell
C. GNOME
D. Aqua

Correct Answer: Option C


Explanation:
GNOME is a popular desktop environment for Linux; Unity was used by Ubuntu earlier, but GNOME is common.

This question belongs to: Computer Operating Systems
Question #2
Which of the following is a type of scheduler that selects the next process to run from the ready queue?
A. Medium-term scheduler
B. I/O scheduler
C. Short-term scheduler (CPU scheduler)
D. Long-term scheduler (job scheduler)

Correct Answer: Option C


Explanation:
The short-term scheduler selects a process from ready queue and dispatches it to the CPU; occurs frequently.

This question belongs to: Computer Operating Systems
Question #3
Which of the following is an example of a distributed operating system?
A. Amoeba
B. Linux
C. Windows Server
D. Android

Correct Answer: Option A


Explanation:
Amoeba is a distributed OS that manages a collection of computers as a single system; others are not distributed by default.

This question belongs to: Computer Operating Systems