使用 cloudshell 指令
  
      
    
  
  
  
  
  
    
  
  
    
    
    
    
您可以使用 cloudshell 指令,透過 Cloud Shell 指令列執行教學課程、下載檔案、設定別名,以及在程式碼編輯器中開啟現有檔案等工作。
cloudshell 的可用位置引數如下:
| 位置引數 | 別名 | 說明 | 
| 說明 | -h, --help | 顯示 cloudshell說明 | 
| edit-files | edit-file, edit | 在 Cloud Shell 編輯器中開啟指定檔案 | 
| download-files | download-file、download、dl | 啟動指定檔案的下載作業 | 
| 別名 |  | 為常見子指令產生簡短別名 | 
應用實例
如要在 Cloud Shell 編輯器中開啟 .bashrc 檔案進行編輯,請在 Cloud Shell 指令列中執行以下指令:
cloudshell edit $HOME/.bashrc
同樣地,如要下載 .bashrc 檔案,請執行:
cloudshell download $HOME/.bashrc
如要在 Cloud Shell 工作階段中顯示 cloudshell 指令的相關資訊,請執行 cloudshell help。
  
  
  
    
  
  
 
  
    
    
      
       
         
  
       
    
    
  
  
  除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
  上次更新時間:2025-10-19 (世界標準時間)。
  
  
    
    
    
      
  
    
  
  
    
      [[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-10-19 (世界標準時間)。"],[],[]]