Skip to content

Instantly share code, notes, and snippets.

@miceno
Created April 5, 2019 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save miceno/6926d553b7d51925d9b504f49cba9b39 to your computer and use it in GitHub Desktop.
Save miceno/6926d553b7d51925d9b504f49cba9b39 to your computer and use it in GitHub Desktop.
Disk usage human sorted on HDFS
#!/usr/bin/env bash
hdfs dfs -du -s -h $1/* | sed -e 's/ \([GMTK]\)/\1/g' | sort -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment