Which Linux command is used to view the system's boot messages? MCQ with Answer and Explanation

Which Linux command is used to view the system's boot messages?
A. bootlog
B. journalctl
C. dmesg
D. messages
Answer: Option C
Solution (By JKSSB Mock Tests)
dmesg prints the kernel ring buffer messages, including boot-time logs; journalctl for systemd logs.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which component of the Linux operating system translates user terminal text commands directly into specific actions understood by the kernel?
A. Compiler
B. BIOS
C. Shell
D. GUI Desktop

Correct Answer: Option C


Explanation:
The shell is a specialized command-line interpreter program that accepts text inputs from the user and executes system commands via the kernel.

This question belongs to: Computer Operating Systems
Question #2
In Linux systems, who is the superuser that possesses unrestricted access permissions to all files and system commands?
A. Guest
B. Root
C. Administrator
D. Supervisor

Correct Answer: Option B


Explanation:
The 'root' user is the conventional name of the system administrator account in Unix-like operating systems, carrying complete administrative rights.

This question belongs to: Computer Operating Systems
Question #3
In Linux, the command 'rm -rf' is used to:
A. Forcefully remove directories and their contents recursively
B. Rename a file
C. Remove empty directories only
D. Read a file forcefully

Correct Answer: Option A


Explanation:
rm -rf (remove recursively and forcefully) deletes directories and files without confirmation, so it's dangerous.

This question belongs to: Computer Operating Systems