Linux – How to show file size in megabytes using command line
by Riley MacDonald, September 20, 2017
To show file size filtered to megabytes in linux you can run the following command:
1 | $ ls -l --block-size=M |
or
1 | $ ls -lh |
This will display all file sizes in the directory filtered by megabyte.