Listing Buckets
aws s3 ls
Create a Bucket
aws s3 mb s3://BucketName
Remove a Bucket
aws s3 rb s3://BucketName
Listing Folders/Files inside Bucket
aws s3 ls s3://BucketName/
Listing Folders/Files inside Buckets / Folders
aws s3 ls s3://BucketName/FolderName/
Copies a single s3 object to a specified bucket and key
aws s3 cp s3://Bucket-1/test.txt s3://Bucket-2/test2.txt
Copies a single object to a specified bucket while retaining its original name
aws s3 cp s3:/Bucket-1/test.txt s3://Bucket-2/
Download file to your current directory from specified Bucket
aws s3 cp s3://Bucket-1 . --recursive
aws s3 cp s3://Bucket-1 /home/dir1 --recursive
Upload file from Directory to specific s3 bucket
aws s3 cp myDir s3://mybucket/ --recursive
aws s3 ls
Create a Bucket
aws s3 mb s3://BucketName
Remove a Bucket
aws s3 rb s3://BucketName
Listing Folders/Files inside Bucket
aws s3 ls s3://BucketName
Listing Folders/Files inside Buckets / Folders
aws s3 ls s3://BucketName
aws s3 cp s3://Bucket-1/test.txt s3://Bucket-2/test2.txt
Copies a single object to a specified bucket while retaining its original name
aws s3 cp s3:/Bucket-1/test.txt s3://Bucket-2/
Download file to your current directory from specified Bucket
aws s3 cp s3://Bucket-1 . --recursive
aws s3 cp s3://Bucket-1 /home/dir1 --recursive
Upload file from Directory to specific s3 bucket
aws s3 cp myDir s3://mybucket/ --recursive
Comments