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.

Open the comment form

Leave a comment:

Comments will be reviewed before they are posted.

User Comments:

Be the first to leave a comment on this post!