List Unix files in sizes you can easily see (Kilobyte, Megabyte, Gigabyte)

Linux Penguin

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 three or less using base 2 for sizes.

Example
[sourcecode language=”plain” gutter=”false”]
ls -lah op*

-rw-r–r– 1 root www-data 11G 2012-09-02 16:49 op.dump
-rw-r–r– 1 root www-data 3.1G 2012-09-03 08:19 op.tgz
[/sourcecode]

Dave Walker
Dave Walker is a middle aged programmer living in North Yorkshire, who loves music and used to enjoy constantly restarting fitness regimes with a bit of football, cycling, swimming & jogging. Now I just eat biscuits.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.