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. du
B. stat
C. df
D. ls -l
Answer: Option A
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
In Linux, the 'umask' command is used to:
A. Set default file permissions for newly created files
B. Change user ID
C. Delete files securely
D. Unmask system files

Correct Answer: Option A


Explanation:
umask defines which permissions are removed (masked) by default when a file or directory is created.

This question belongs to: Computer Operating Systems
Question #2
What type of memory allocation problem occurs when free memory blocks are broken down into tiny, disconnected gaps that are too small to serve new process requests?
A. External Fragmentation
B. Virtual Paging Fault
C. Internal Fragmentation
D. Deadlock Allocation

Correct Answer: Option A


Explanation:
External fragmentation occurs when total free memory space exists to satisfy a allocation request, but it is split up non-contiguously into tiny pockets.

This question belongs to: Computer Operating Systems
Question #3
Which file system is used as the standard, default option for modern internal drives in Windows 10 and Windows 11?
A. NTFS
B. exFAT
C. ext4
D. FAT32

Correct Answer: Option A


Explanation:
NTFS (New Technology File System) is the native and default file system for modern Windows installations, providing security, journaling, and large file size support.

This question belongs to: Computer Operating Systems