I'm trying to do du -h | sort -h, but my CentOS 5.7 doesn't have -h flag for sort. So I installed coreutils

  coreutils.x86_64 0:5.97-34.el5_8.1

yet sort still doesn't have the -h flag. Am I not doing something,or doing something wrong? I'm fairly new to *nix.

  • 2
    Following the link you gave, you need coreutils 7.5 and you only have 5.97 You need to seriously consider upgrading CentOS
    – eyoung100
    Commented Jan 1, 2015 at 1:09
  • @eyoung100 ah thanks! It's actually a VPS, not sure if I can do much about it. Commented Jan 1, 2015 at 1:12
  • Then you need to talk to your host...
    – eyoung100
    Commented Jan 1, 2015 at 1:13
  • 2
    Tell them you would like to upgrade to CentOS 6.5 at least
    – eyoung100
    Commented Jan 1, 2015 at 1:23

1 Answer 1


The help page is obtained by using sort --h

or use the manual eg.

man sort

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .