Brad Lucas

A blog mostly about programming
July 12, 2017

Diskspace

Show the amount of disk space the larger directories under your home directory are taking.

diskspace.sh

#!/bin/sh

pushd $HOME

du -sk * | sort -nr | head

popd


Tags: bash