UnixTools/spacehogs
2013-03-21 01:54:15 +01:00

8 lines
141 B
Bash
Executable File

#!/bin/bash
echo Top 10 space hogs
set DIR="$1"
if [ -z $DIR ]; then
set DIR = "."
fi
find $DIR -type f -ls | sort -k 7 -r -n | head -10