使用 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):2023-01-15。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"很难理解"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"信息或示例代码不正确"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"没有我需要的信息/示例"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]