On Mon, 2007-10-08 at 13:24 +0200, roberto 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 ?
You can achieve this by sorting the output produced by df/du like this: "df -h|sort -k2" The "-k2" tells sort to sort by the second column. If you want it sorted in reverse order add the "-r" option. Hope that answers your question --- Wolodja Wentland
signature.asc
Description: This is a digitally signed message part