How do I make `ls` show file sizes in megabytes?

Fragen & AntwortenKategorie: QuestionsHow do I make `ls` show file sizes in megabytes?
kargware Mitarbeiter asked 4 Jahren ago

What commands do I need for Linux’s ls to show the file size in MB?

1 Antworten
kargware Mitarbeiter answered 4 Jahren ago

a) `ls -l –block-size=M`
b) `ls -lh`

a) List files / folders with details and all sizes normalized to Megabytes
b) List files / folders with details and all sizes human readable

[unix.stackexchange.com 64148](https://unix.stackexchange.com/questions/64148/how-do-i-make-ls-show-file-sizes-in-megabytes)