Why are Ls and du different sizes?

Tâm Tây

New member
Why are Ls and du different sizes?
Answer
The du command shows how much disk space is used for the given file. In contrast,
the ls command shows the size of the file. The space used can be larger than the file size, depending on the filesystem used. So the used disk space was in this example 4 kilobytes, although the filesize is only one byte.
 

Tìm kiếm

Back
Top