Techbypass always tries to help you to learn about recent vulnerabilities and exploitations.

Learn and share your security findings and help others to secure their digital assets.

Need any help mail to [email protected]

0 votes
Hi, I need basic operations like reading, writing, removing, copying a file on the s3 bucket. Can anyone provide those commands?
by (169 points)

1 Answer

0 votes

Af first you need to install AWS Command Line Interface https://aws.amazon.com/cli/

and configure using AWS Access Key ID & AWS Secret Access Key from your AWS console https://console.aws.amazon.com

Lets the s3 bucket name 

codeshikari.com

To see the list of all files in the bucket with the command in the terminal.

aws s3 ls s3://codeshikari.com

Now copy a local file to the bucket with the command in the terminal

aws s3 cp test.txt s3://codeshikari.com

Also, you can copy the file from the bucket using this command

aws s3 cp s3://codeshikari.com/test.txt ./

And can remove a file from the bucket using this command.

aws s3 rm s3://codeshikari.com/test.txt

by (269 points)
...