$
$ echo "abcd" > a.txt
$ echo "abcd" > aaaaaaaaaaaaaaaaaaaaaaaa.txt
$
$ sha256sum a*
fc4b5fd6816f75a7c81fc8eaa9499d6a299bd803397166e8c4cf9280b801d62c a.txt
fc4b5fd6816f75a7c81fc8eaa9499d6a299bd803397166e8c4cf9280b801d62c aaaaaaaaaaaaaaaaaaaaaaaa.txt
$
$ ls -hl
total 0
-rwxrwxrwx 1 erh-unix erh-unix 5 Sep 27 11:13 a.txt
-rwxrwxrwx 1 erh-unix erh-unix 5 Sep 27 11:13 aaaaaaaaaaaaaaaaaaaaaaaa.txt
I created two files: a.txt
and aaaaaaaaaaaaaaaaaaaaaaaa.txt
, the contents of each are the ascii characters abcd
The filenames are different, the content is identical. Yet they both take up the same space (5 bytes), and both have the exact same sha256 hash.
Where are filenames stored for each of these files?