Which Linux command is used to display the system's current runlevel? MCQ with Answer and Explanation

Which Linux command is used to display the system's current runlevel?
A. systemctl get-default
B. All of the above
C. runlevel
D. who -r
Answer: Option B
Solution (By JKSSB Mock Tests)
runlevel and who -r show the current and previous runlevel; systemctl get-default shows default target.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which Linux command is used to set the system's hostname?
A. sysctl
B. hostname
C. hostnamectl
D. set-hostname

Correct Answer: Option B


Explanation:
hostname can display or set the system's hostname; hostnamectl is also used in systemd.

This question belongs to: Computer Operating Systems
Question #2
In Windows, the 'Registry' value type 'REG_DWORD' represents:
A. A binary value
B. A 64-bit integer
C. A 32-bit integer
D. A string

Correct Answer: Option C


Explanation:
REG_DWORD is a 32-bit numeric value; REG_QWORD is 64-bit; REG_SZ is string; REG_BINARY is binary.

This question belongs to: Computer Operating Systems
Question #3
In Windows, the command 'diskpart' is used for:
A. Disk partition management
B. Disk formatting
C. Disk defragmentation
D. Disk cleanup

Correct Answer: Option A


Explanation:
diskpart is a command-line utility for managing disk partitions, volumes, and dynamic disks.

This question belongs to: Computer Operating Systems