How to install and use s3cmd tool in CentOS to manage AWS S3 storage buckets

   S3cmd is a free tool and client used for uploading, retrieving and managing data in Amazon S3 and other cloud storage service providers that use the S3 protocol, such as Google Cloud Storage. It is used by users who are familiar with command line programs. It is also ideal for batch scripts and automated backup to S3.

 How do i install s3cmd ? 

I will install the tool on a CentOS host using the yum package manager.

See example below:

To finalize the s3cmd tool installation you need to create the config file or the .s3cfg file.

Similar Article  RAID Nivel 4

See example below on how to configure the conf file.

  • you will have to provide it with your AWS Access Key, Secret Key, default region and a password used for encryption.

  • a conf file will be created in the /root/.s3cfg location.
Similar Article  Fix for AWS EC2 instance stuck in Initializing state


  • make sure it can only be read by the root/owner user since it stored your keys and password in test format in the file.

Test that your s3cmd tool was installed correctly.

Check the installed version:

List all available S3 buckets under your account:


In the next article we will see how we can use the s3cmd tool to manage our AWS S3 storage buckets.

Working with S3CMD tool on AWS S3 storage buckets


I hope this was helpful and i appreciate if you would like, subscribe or share our posts. I it is just a click


No Comments
Leave a Comment

%d bloggers like this: