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. cat
B. tail
C. head
D. less
Answer: Option B
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 execution environment layer in Android handles core operations like memory management, thread orchestration, and garbage collection for modern apps?
A. Android Runtime (ART)
B. Linux Kernel Core
C. Hardware Abstraction Layer
D. Dalvik Cache Engine

Correct Answer: Option A


Explanation:
ART (Android Runtime) serves as the managed execution environment for modern Android applications, handling execution and garbage collection.

This question belongs to: Computer Operating Systems
Question #2
What is the purpose of the Android 'FragmentManager'?
A. To handle fragment transactions
B. To manage activities
C. Both A and C
D. To manage fragments (UI components) within an activity

Correct Answer: Option C


Explanation:
FragmentManager handles adding, removing, and replacing fragments, as well as managing back stack.

This question belongs to: Computer Operating Systems
Question #3
What is the main role of the Android 'MediaPlayer' class?
A. To record audio
B. To play audio and video files
C. To edit media files
D. To manage media storage

Correct Answer: Option B


Explanation:
MediaPlayer is used for playback of audio/video from files, streams, or resources.

This question belongs to: Computer Operating Systems