I am confused with the output of command 'du' in Linux
Fresh3 days ago
Mar 15, 20263209 viewsConfidence Score0%
0%
Problem
I create a file named file.o, i want to check the size of the file.o file. according to , i get to know file.o is 1120bytes large. But why outputs 4.0K (means 4*1024 bytes)?
Error Output
du -h file.o ====> 4.0K
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: I am confused with the output of command 'du' in Linux
Low Risk
The file is smaller, but it takes one whole 4.0K block on the disk (you can have only one file in one block). If its byte size were (for example) 5678 Bytes, it would occupy two 4.0K blocks, i.e. 8.0K. prints sizes in bytes, overriding the default b…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix