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

Which Linux command is used to view the contents of a file?
A. less
B. more
C. All of the above
D. cat
Answer: Option C
Solution (By JKSSB Mock Tests)
cat, more, and less all display file contents; less is interactive, cat dumps entire file.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which Windows utility is used to view and terminate running processes and applications?
A. File Explorer
B. Control Panel
C. System Information
D. Task Manager

Correct Answer: Option D


Explanation:
Task Manager provides a list of running processes, performance data, and allows users to end tasks or processes.

This question belongs to: Computer Operating Systems
Question #2
In Linux, what is the default shell for many distributions?
A. sh
B. zsh
C. csh
D. bash

Correct Answer: Option D


Explanation:
Bash (Bourne Again SHell) is the default shell on most Linux distributions.

This question belongs to: Computer Operating Systems
Question #3
Which Linux command is used to set or change the system's time zone?
A. timezone
B. timedatectl
C. date -s
D. tzselect

Correct Answer: Option B


Explanation:
timedatectl set-timezone is the modern systemd command; tzselect is interactive but only sets environment.

This question belongs to: Computer Operating Systems