I want to find the size of my sub-folders at the first depth in Google Cloud Storage. There is the function gsutil du
, that is quite similar to du
, but with some differences.
I am not able to just show the size of the sub-folders at the first depth. Using traditional du, I could use (from this stack):
du -h --max-depth=1
du -sh -- *
What is the equivalent with gsutil du
? Doing gsutil du -h gs://bucket_name/*
prints info for all sub-folders (many depths) while gsutil du -sh gs://bucket_name/*
shows only grand total.
Thanks!