You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
whileread -r key;do
mc rm myminio/testb/${key}
done<<(mc ls --json myminio/testb | jq --raw-output '"\(.key)"')
Count objects in a bucket
mc ls -r --json qa-shore/multimedia | wc -l
List buckets
foriin$(mc --json ls alias/ | jq -r .key | grep '^bucket');do mc ls alias/$i;done
Total object and their size
mc ls --json --recursive s3/ferenginar | jq .size | awk '{sum+=$1} END {print sum}' (for total size)
mc ls --json --recursive s3/ferenginar | jq .key | wc -l (for number of objects)
Better alternative human readable is