How to get folder size in bytes

FTP Server, File Server, DDNS, SAMBA, AFP, NFS
Post Reply
alf123
New here
Posts: 9
Joined: Thu Feb 27, 2020 4:51 pm

How to get folder size in bytes

Post by alf123 »

Hi,
Is there a way to get a folder size in bytes that matches Windows right click -> Properties?
I've tried:

Code: Select all

du --max-depth=1 -b
but the bytes displayed doesn't match the same as bytes as shown by Windows -> Properties.
Qnap File Station right click -> Properties only lists it in MB/GB no way to change the display to bytes.
Any other ideas? Am i missing any options with "du" command?
Thanks.
Post Reply

Return to “File Sharing”