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,或從 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 編輯器檔案總管中,對目錄或檔案按一下滑鼠右鍵,然後點選「複製下載連結」、「下載」或「上傳檔案」。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-03-21 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-03-21 (世界標準時間)。"],[],[]]