Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
ghostfish
· 14y ago · 0 comments
My thoughts exactly. This is just complexity for complexity's sake. Useful as an exercise, but the -h flag already does this is an even more readable manner.
Comments
[–]
bajsejohannes
14y ago
This works with sorting, and it's easier to pick big files out at a glance. I would use this as often as -h
[–]
cheald
14y ago
`ls -lhS` works just fine to sort with human-readable sizes, at least on Fedora.
[–]
runejuhl
14y ago
You could also use 'ls -lh | sort -h'.
[–]
sliverstorm
14y ago
I believe that's only supported in newer versions of sort.