[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: df -h listing



On Mon, 8 Oct 2007 13:24:35 +0200
roberto <roberto03@gmail.com> wrote:

> hello
> i use the "df -h" or "du -h"command to check how much disk space is
> occupied by files and directories
> 
> but is it possible to sort the output list in an order such that the
> first (or conversely the last) item is the largest in size ?

If you drop the -h you could easiely use sort.  

df | sort -k 2

See man sort



Reply to: