Diskspace

July 12, 2017

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