2

useful alias when you want to inspect what is taking up space on your disk - needs GNU du

alias duh='function _blah(){ du -ahcd 1 --time $1 | sort -h -r; };_blah'

$ duh /path/to/folder | less

Comments
  • 4
    Why the need to alias a function? You can just define the function:

    duh() { du -ahcd 1 --time $1 | sort -h -r; }
  • 1
    @ethernetzero yeah you are right, just found it as a very old entry in my .bash_aliases file that I move around machines, thought I'll put it here. I certainly didn't know any better back then :p
Add Comment