One of the challenges with S3-style storage (such as Wasabi or AWS S3) is determining the size of a storage bucket. Wasabi initially offered this capability via a bucket size feature, but AWS S3 still does not offer it. Sometimes it is necessary to turn to a third-party tool for this purpose. One such tool is S3cmd. S3cmd is a command-line tool that allows users to view and manage their S3 buckets. It can be extremely useful for getting finer details about your s3 buckets.
To start, download s3cmd here and follow the instructions for installation.
Once installed, run the following.
~$ s3cmd --configureYou will then go through the configuration process step by step to set it up with Wasabi. The image below details the process in its entirety.
The key modifications to make it work with Wasabi are as follows:
Use your Wasabi access and secret access keys when asked.
Default region, then us-east-1.
Change s3.amazonaws.com to s3.wasabisys.com for the s3 endpoint.
Change %(bucket)s.s3.amazonaws.com to %(bucket)s.s3.wasabisys.com in the following step.
The rest should be the same.

Once configured, enter
~$ s3cmdTo get a list of available actions you can perform.
To view your buckets and their respective sizes, enter the following.
~$ s3cmd duThis will list all your buckets, along with the number of objects and the total size.
For more info on how to use s3cmd, go to http://s3tools.org/s3cmd-howto file.