---

How to display files sizes in MB in Linux/Ubuntu

Sometimes we want to see the sizes of files as returned by the ls command to be displayed in some reasonable format or in other words in human readable presentation. This will display the file sizes in units like 7K, 5M, 8.2G, etc???to do this, use the -lh option with ls.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis