What is the 'total' size?

QuestionsQuestions8 SkillsProPermissions of FilesNov, 20 2025
080

The "total" size displayed in the output (e.g., total 4) refers to the total number of blocks used by the files and directories within that directory. In Unix-like systems, file sizes are often measured in blocks, where one block typically equals 512 bytes.

Breakdown:

  • Total Size: Indicates the total number of blocks allocated for the files and directories listed.
  • Example: If it shows total 4, it means that the combined size of the files and directories in that directory is 4 blocks, which is equivalent to 2,048 bytes (4 blocks × 512 bytes/block).

This total does not represent the actual byte size of the files directly but rather how much disk space they occupy in terms of blocks. If you want to see the actual sizes of files in bytes, you can look at the individual file sizes listed next to each file.

0 Comments

no data
Be the first to share your comment!