clutch


du -cksh * | sort -rn | head -11

About Nathan Powell

I am a middle aged technologist freak-ball.
This entry was posted in computers. Bookmark the permalink.

3 Responses to clutch

  1. This mixes up K sized files with M sized files so it tells me 332K is bigger than 255M. Does that go back to the UTF-8 encoding issue. I came up with another method that gets me what I want in directories with Gig files in them. It doesn’t sort G, M and K appropriately though.

    sudo du -ckh * | sort -rn |egrep ‘[0-9]G[[:space:]]’

  2. Take the -h out of the du, that makes them have the M, G and K on there, I added that right before I posted, because I am not always good at looking at the longer numbers. Without that it works as you want it too, just not with the human readable marker at the end.

  3. :-) I like the human readable markers too. All those digits get confused inside my little brain :-)