Vidyalelo
Computer Science · Q38

UNIX

Engineering and GATE · Computer Science · question 38

Q38

Which of the following options will be used to display number of blocks used by a file?

A.
-c
B.
-d
C.
-i
D.
-s
Answer
E.
None of the above

Answer: Option D

Solution

Answer: Option D
Solution:
In Unix, the du command is used to estimate file space usage. The -s option, when used with du, displays only a summary of the disk usage, including the total number of blocks used by a file or directory.
So, -s is the option used to display the number of blocks used by a file.