How do I make `ls` show file sizes in megabytes? | |
---|---|
Subject: | |
2015-08-29 16:02:06 | gstlouis |
ls -l --block-size=M will give you a long format listing (needed to actually see the file size) and round file sizes up to the nearest MiB. If you want MB (10^6 bytes) rather than MiB (2^20 bytes) units, use --block-size=MB instead. If you don't want the M suffix attached to the file size, you can use something like --block-size=1M. Thanks Stéphane Chazelas for suggesting this. | gstlouis |
2015-08-29 16:02:36 | |
this does not work on macs | gstlouis |
2015-09-22 10:04:29 | |
ls -lh is another one that works showing the megs | gstlouis |
2019-01-29 09:55:40 | |