I have an executable i build on Ubuntu 16.04. The file size shown on the GUI and through the ls -l command is:
-rwxrwxr-x 1 alibivmuser alibivmuser 19108760 dic 20 15:49 NreSpeechApplication
And I know this means the actual size of the file is 19 MB. On my file system, the size is somehow similar (using ls -s):
I expected the size output of the
size command in Linux would give something similar, but it shows as a total more or less 1.8 MB:
text data bss dec hex filename 1806360 2416 4552 1813328 1bab50 NreSpeechApplication
So my question is: why the two results are so different? And where do these additional MBs come from to form 18MB from 1.8?