Created
December 23, 2016 15:01
-
-
Save mujahidk/a8950fac847b9dfadd38fee13020016d to your computer and use it in GitHub Desktop.
List files using ls and size in MB (mega bytes)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://xkcd.com/1168/ :) | |
ls -l --block-size=M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you guys may also try:
ls -lah
-h
When used with the -l option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and Petabyte in order to reduce the number of digits to four or fewer using base 2 for sizes. This option is not defined in IEEE Std 1003.1-2008 (“POSIX.1”).