Which Linux command is used to display the disk usage of files and directories? MCQ with Answer and Explanation

Which Linux command is used to display the disk usage of files and directories?
A. df
B. stat
C. du
D. ls -l
Answer: Option C
Solution (By JKSSB Mock Tests)
du (disk usage) estimates file space usage; df shows file system disk space usage.

Discuss this Question (0)

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

Practice More Operating Systems Questions

Question #1
Which of the following is a symmetric multiprocessing (SMP) system?
A. A system with multiple processors each with their own memory
B. A system that uses distributed memory
C. A system with one processor and multiple cores
D. A system with multiple processors sharing a single memory space and OS

Correct Answer: Option D


Explanation:
SMP architecture has multiple CPUs sharing a single main memory and OS, with equal access to resources.

This question belongs to: Computer Operating Systems
Question #2
In Windows, the 'Performance Monitor' (perfmon) is used to:
A. View system errors
B. Collect and view real-time performance data and logs
C. Manage system services
D. Monitor network traffic

Correct Answer: Option B


Explanation:
Performance Monitor creates Data Collector Sets and displays performance counters for CPU, memory, disk, etc.

This question belongs to: Computer Operating Systems
Question #3
Which file allocation table structure uses an index block to store pointers to all distinct file data sectors, allowing efficient random access without fragmentation bottlenecks?
A. Indexed Allocation
B. Linked Method
C. Contiguous Method
D. Linear Block Mapping

Correct Answer: Option A


Explanation:
Indexed allocation consolidates all block pointers into a single dedicated index block, enabling direct access to any block without linear scanning.

This question belongs to: Computer Operating Systems