Multiple choice

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

  1. -c

  2. -i

  3. -d

  4. -s

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

The -s option with ls (and other file listing commands) displays the size of the file in blocks (typically 512-byte or 1KB blocks depending on the system). This shows how much disk space the file actually occupies.