bash check apakah perintah tersedia

if ! <command> &> /dev/null
then
    echo "<command> not found"
    exit
fi
Wizard Nook