---
title: "用 Amazon AWS S3 CLI 复制文件并设置权限"
description: "打开 term（或同类终端）并粘贴下面的内容："
canonical: https://oozou.com/til/amazon-aws-s3-cli-copy-with-set-perms-14
locale: zh-Hans
date: 2020-10-13
topic: shell
---

# 用 Amazon AWS S3 CLI 复制文件并设置权限

> 打开 term（或同类终端）并粘贴下面的内容：

Published: 2020-10-13 · Topic: [shell](https://oozou.com/zh-Hans/til-topics/shell) ([markdown](https://oozou.com/zh-Hans/til-topics/shell.md))

打开 *term*（或同类终端）并粘贴下面的内容：

## S3 复制

- 上传一个所有人可读的文件：

```
aws s3 cp source.file s3://bucket/path/dest.file --acl public-read
```

*--acl* 参数的选项有：

- *private*：仅拥有者可见
- *public-read*：所有人可读
- *public-read-write*：所有人可读写

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/zh-Hans/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
