I have split a very large file(~500 MB) into many parts using the
split command (Each split file has the same number of lines 131072, and of ~2.1 MB except the last one. Every line in each split file contains two integers only). The problem is with the split files. Some split files show size difference in nautilus and
ls -l command output to great extent as shown for two files in the following image.
What could be the reason for this? I am assuming
ls -l output is correct for sure because files should be of same size.
When split files are copied to other drives they show comparable size for all the files(~2.1 MB as should be actually for the
split -a 3 -l 100000 <filename> <file_prefix>). After opening the files from some other drive(after copying) and from the current drive , there is no difference in content(only the size displayed in both the drives is different). This problem is only observed while splitting large files using
split. This problem occurs depending upon the way file is split(changing the number of lines in split command, sometime does not result in this problem). From above observation it looks like problem is not with
split command but with the way nautilus calculates the size (May be depending upon the way files are stored or provided node points, but I don't have any idea how nautilus calculates the size). I am able to reproduce the same problem with 250 MB file for different
split command setting. I will try to reproduce the problem for small file and if I can I will update.
It may be architecture dependent. I am using Ubuntu 16.04, Intel core-i5, RAM 16 GB, Hard drive ext4 format.