Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
停用或重設 Cloud Shell
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
本頁說明如何為受管理的使用者帳戶停用 Cloud Shell,以及如何重設 Cloud Shell。
為受管理使用者帳戶停用 Cloud Shell
如要為 Google Workspace 和 Cloud Identity 管理的使用者帳戶停用 Cloud Shell,請前往 Google 管理控制台,然後依序點選「應用程式」 >「其他 Google 服務」 >「Google Cloud Platform」 >「Cloud Shell 設定」,並停用「Cloud Shell 存取權設定」。
如要為特定使用者停用 Cloud Shell,請使用存取權群組:將個別使用者加入群組,然後關閉群組的 Cloud Shell 存取權設定。詳情請參閱「控管機構中有誰能使用 Google Cloud 」指南。
重設 Cloud Shell
如要重設 Cloud Shell,並將 Cloud Shell 主目錄還原為乾淨狀態,請按照下列步驟操作。
如要將 Cloud Shell 主目錄還原為淨空狀態,請按照下列步驟操作:
檢查主目錄中的個人檔案,並注意下一步會刪除這些檔案:
ls -a $HOME
移除主目錄中的所有檔案:
sudo rm -rf $HOME
在 Cloud Shell 選單中,按一下「更多」more_vert,然後按一下「重新啟動」power_settings_new。
如果系統提示,請在確認對話方塊中按一下「重新啟動」。
這會佈建新的 VM,並將主目錄還原至預設狀態。
除非另有註明,否則本頁面中的內容是採用創用 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 (世界標準時間)。"],[],[]]