Gábor DANI
Gábor DANI

Reputation: 2135

How can two 100% identical files have different sizes?

I have two 100% identical empty .sh shell script files on Mac:

The contents of encrypt.sh and its hexdump: encrypt.sh

The contents of decrypt.sh and its hexdump: decrypt.sh

The file info window of encrypt.sh:

encrypt info

The file info window of decrypt.sh:

decrypt info

They have the exact same hexdump, then how is it possible that they have different sizes?

Upvotes: 0

Views: 332

Answers (1)

jlliagre
jlliagre

Reputation: 30823

Mac OS X file system is implementing forks, so the larger one is likely having something specific stored in its resource fork.

Use ls -l@ to get more details.

Upvotes: 1

Related Questions