← All recipes

Disk Usage

Overall disk usage within home WordPress directory.

home=$( wp option get home )
usage=$( du -sh . | cut -f1 )
echo "Usage for $home is $usage"
Run it across a fleet

Open the console in CaptainCore Manager, pick the target sites, choose this recipe from the Cookbook picker and press run. The CLI streams each site's output back to the dock.

About the console →