Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
使用 Cloud Shell 管理文件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
本页面介绍如何使用 Cloud Shell 上传和下载文件和文件夹。
上传和下载文件和文件夹
使用 Cloud Shell 可以轻松上传和下载文件和文件夹。如需传输文件,请使用以下方法之一:
点击 more_vert 更多 >
上传或下载,以将您的文件或文件夹移入/移出 Cloud Shell。文件和文件夹只能上传到主目录或从中下载。
使用 cloudshell download 命令下载文件:
cloudshell download test1.md test2.md
在本地终端上使用 gcloud cloud-shell scp 命令可在 Cloud Shell 和工作站之间传输文件。例如,要将文件“data.txt”从 Cloud Shell 移动到本地计算机,请执行以下命令:
gcloud cloud-shell scp cloudshell:~/data.txt localhost:~data.txt
在 Cloud Shell Editor Explorer 中,右键点击目录或文件,然后点击复制下载链接、下载文件或上传文件。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2026-06-03。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2026-06-03。"],[],[]]