Re:Hacking ls -l
by tsahyt on Sunday October 14, 2012 @12:33PM
(#4651765)
I use "du <directory> -h -d 1|sort -h" for this because large files may be nested in directories and ls doesn't display the size of content directories (as far as I know). The output is sorted. Note that the "-d" flag for "du" doesn't work with all versions, but there were similar flags on all systems.
[ Parent
| on HN ]
Re:Hacking ls -l
by sliverstorm on Monday October 15, 2012 @01:39AM
(#4653923)
I don't usually have access to a version of "sort" that supports the "-h" flag.