---
title: "用 Amazon AWS S3 CLI 複製檔案並設定權限"
description: "打開 term（或同類終端機）並貼上以下內容："
canonical: https://oozou.com/til/amazon-aws-s3-cli-copy-with-set-perms-14
locale: zh-Hant
date: 2020-10-13
topic: shell
---

# 用 Amazon AWS S3 CLI 複製檔案並設定權限

> 打開 term（或同類終端機）並貼上以下內容：

Published: 2020-10-13 · Topic: [shell](https://oozou.com/zh-Hant/til-topics/shell) ([markdown](https://oozou.com/zh-Hant/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-Hant/contact

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