0

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

  • encrypt.sh: 299 bytes
  • decrypt.sh: 13 bytes (Actually this size is correct, since I have 13 bytes: 11 character + two new line)

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?

Gábor DANI
  • 2,063
  • 2
  • 22
  • 40

1 Answers1

1

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.

jlliagre
  • 29,783
  • 6
  • 61
  • 72