The usual ls command can display the size of files with the option -h and I am having a little doubt about it being display in MB or MIB.
For example :
$ ls -lha
drwxr-xr-x 2 user group 4.0K Apr 2 21:49 .
drwxr-xr-x 5 user group 4.0K Apr 2 21:49 ..
-rw-r--r-- 1 user group 129M Apr 2 21:49 2018-04-02T21:49:08.981976.hdf5
So, this leaves me with 2 questions :
- Does
ls -lhadisplayed the size in MB or MiB? - Is it consistent across Unix-based operating systems and their own versions over time?
N.B.: Not only commercial Unix-based operating systems should be considered for this question.