s3cmd
Install s3cmd
- Make sure you have Python version 2.7 or higher.
Install s3cmd using pip:
pip install s3cmd
You may have the run the command with sudo if you receive a permission denied error:
sudo pip install s3cmd
Configure s3cmd
- Download this s3cfg file.
- Edit the file and replace REPLACE_WITH_ACCESS_KEY and REPLACE_WITH_SECRET_KEY with the S3 API keys.
- Move the files to ~/.s3cfg
Run s3cmd
List containers (buckets):
s3cmd ls
List objects in containers (buckets):
s3cmd ls s3://container_name/
To get a list of all s3cmd commands:
s3cmd