Which Linux command is used to check the disk space usage of the root file system? MCQ with Answer and Explanation

Which Linux command is used to check the disk space usage of the root file system?
A. fdisk -l
B. df -h /
C. du -sh /
D. lsblk /
Answer: Option B
Solution (By JKSSB Mock Tests)
df -h / shows used/available space on the root partition; du -sh / calculates total size of all files under /, which is heavy.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
What is the name of the software layer in Android that provides standard interfaces to expose device hardware capabilities to the higher-level Java API framework?
A. Android Runtime (ART)
B. Hardware Abstraction Layer (HAL)
C. Linux Kernel
D. Native C/C++ Libraries

Correct Answer: Option B


Explanation:
The Hardware Abstraction Layer (HAL) defines a standard interface for hardware vendors to implement, enabling higher-level Android framework APIs to interact with hardware.

This question belongs to: Computer Operating Systems
Question #2
Which of the following is an example of a desktop environment for Linux?
A. GNOME
B. Windows Shell
C. Aqua
D. Unity

Correct Answer: Option A


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 #3
Which command in Windows is used to check the integrity of system files?
A. systeminfo
B. chkdsk
C. dism
D. sfc /scannow

Correct Answer: Option D


Explanation:
System File Checker (sfc /scannow) scans and repairs corrupted system files in Windows.

This question belongs to: Computer Operating Systems