How to install and use S3CMD

s3cmd is a command line client for copying files to/from Amazon S3 (Simple Storage Service) and performing other related tasks, for bucket creating and removing buckets, listing objects, etc.

How to install s3cmd:

If you are using Ubuntu then you have to issue below command instead of “yum install -y python24-devel”

Configure s3cmd:

It will ask you for the two keys. Copy and paste them from Amazon Control panel.

After configuring s3cmd now you will able to communication with your s3 bucket.

Some Useful s3cmd commands:

Create S3 bucket. In my case I will create bucket named “”:

Remove a bucket:

List objects in the bucket:

Copy files to S3 bucket:

Copy Folders to S3 Bucket:

Get objects form S3 to local drive:

Put objects from local drive to S3

Delete object from S3:

Synchronize a directory tree to S3

Disk usage by buckets

Get various information about Buckets or Files

Move object

The following two tabs change content below.

Tapas Mishra

Sr. Engineer (DevOps)
Loves to work on Opensource products. Having experience on Linux environment. Knowledge on Public cloud services like AWS, Rackspace, DigitalOcean, Linode. Please don't hesitate to give a comment on the posts. Your comments are my strength.

Leave a Reply