Hi everyone,
I have two supposedly identical directories on macOS (HFS+) and Ubuntu Server 20.04 (EXT4). I copied the directory from the Mac to the Linux machine using
Code:
rsync -auv [directory1] user@192.168.0.20:[directory2]
without problems. Now I have some problems with differing sizes of those two directories. Lets start with this:
On the Linux machine, when my path is inside [directory2], I do
, I get as a result for the number of files in the directory
, I get as a result in kB
On the Mac, inside [directory1], I do the same
, I get as a result for the number of files in the directory
, I get as a result in kB
To explain the size difference, on the Linux machine I tried
Code:
du -shk --exclude './.*'
to exclude hidden files and resource files, I get as a result in kB
same on the Mac:
to exclude hidden files and resource files, I get as a result in kB, same as before
When I do a
Code:
diff -x '.*' -rq [dir1] [dir2]
it ends without output, so seemingly the same.
What could explain the size differences? Or is there a better way to compare file sizes?
Bookmarks