You are not logged in.

#1 2008-02-02 20:03:58

colbert
Member
Registered: 2007-12-16
Posts: 809

How to have size output always human readable in CLI?

Hey guys, I am wondering how I can get all sizes in CLI always human readable. I use ls -sh usually to list, and I know I can alias it but even when doing scp or wget, how can I always get it to be human readable (MB and GB, etc.)??

Is it aliasing each specific command ?? How could I do it for wget and others like scp, etc. ??

Offline

#2 2008-02-02 21:09:00

vogt
Member
From: Toronto, Canada
Registered: 2006-11-25
Posts: 389

Re: How to have size output always human readable in CLI?

You have to make aliases for all the commands you want to change.

Wget does not seem to offer any options for human readable output, but a quick google search turns up this old patch, which is probably too much work to apply (and might not work anyways). Perhaps other download clients have this built in (aria2 or others?). Maybe its the same case for scp?

Offline

Board footer

Powered by FluxBB