기본적으로 Cloud Shell은 임시 할당된 가상 머신에 5GB의 무료 영구 디스크 스토리지를 프로비저닝합니다. 이는 $HOME 디렉터리입니다. 기본 Cloud Shell 환경을 사용하면 홈 디렉터리의 파일은 세션 간에 유지됩니다.
영구 스토리지가 필요하지 않으면 임시 모드에서 Cloud Shell을 사용합니다. 임시 모드에서는 설정 수가 적고 디스크 연결이나 보관 파일이 없으므로 Cloud Shell을 더 빠르게 시작할 수 있습니다.
하지만 임시 모드 세션 중에 만든 모든 파일은 세션이 종료되면 VM과 함께 삭제됩니다.
임시 모드를 선택하려면 https://shell.cloud.google.com URL에 ephemeral=true를 추가하세요. 예를 들면 https://shell.cloud.google.com/?ephemeral=true입니다.
https://console.cloud.google.com URL의 경우에는 작동하지 않습니다.
또는 Cloud Shell 더보기 메뉴를 열고 임시 모드를 선택한 다음 저장을 클릭해도 됩니다.
임시 모드를 Cloud Shell 기본값으로 설정하려면 저장을 클릭하기 전에 항상 임시 모드에서 Cloud Shell 시작을 사용 설정하세요.
디스플레이 창 조정
디스플레이 창을 조정하려면 다음을 수행합니다.
숨기기 또는 복원을 클릭하여 세션 디스플레이를 숨기거나 복원합니다.
새 창에서 세션 열기를 클릭하여 세션을 새 창으로 분리합니다.
분리된 창을 닫고 Google Cloud 콘솔에서 세션을 다시 열려면 Google Cloud 콘솔 창 상단에서 Cloud Shell 활성화를 클릭합니다.
테마 간에 전환하려면 설정을 클릭한 후 밝은 테마로 전환 또는어두운 테마로 전환을 클릭합니다.
다음 단계
Cloud Shell 구성에 익숙해졌으므로 이제 명령줄에서 사전 설치된 도구 및 명령어를 사용할 수 있습니다. 또한 필요에 따라 영구 디스크 저장소의 홈 디렉터리에 추가 도구를 설치할 수도 있습니다.
[[["이해하기 쉬움","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-04-21(UTC)"],[],[],null,["# Use Cloud Shell\n\nThis page describes how to start and set up a new Cloud Shell session.\n\nStart a new session\n-------------------\n\nClick\n**Activate Cloud Shell** at the top of the Google Cloud console.\n\nA Cloud Shell session opens inside a new frame at the bottom of the\nGoogle Cloud console and displays a command-line prompt. It can take a few\nseconds for the session to be initialized.\n\n### Use the terminal\n\nCloud Shell provides command-line access to the virtual machine\ninstance in a terminal window that opens in the Google Cloud console.\n\nIn addition to accessing the [Google Cloud CLI](/sdk/gcloud) and other\nutilities from the command line, you can use the `cloudshell` command to launch\ntutorials, open the Cloud Shell Editor, and download files.\n\nRefer to the guide on using the\n[Cloud Shell Terminal](/shell/docs/use-cloud-shell-terminal)\nfor more details.\n\n### Use the Cloud Shell Editor\n\nThe built-in code editor provides the convenience of viewing and editing files\nin the same environment where projects are built and deployed. Launch the Cloud Shell Editor by clicking\n\n**Open Editor** on the toolbar of the Cloud Shell window.\n\nFor more information, see\n[Cloud Shell Editor interface overview](/shell/docs/editor-overview).\n\n### Choose ephemeral mode\n\nBy default, Cloud Shell provisions 5 GB of free persistent disk\nstorage on your temporarily allocated virtual machine. This is your `$HOME`\ndirectory. When you use the default Cloud Shell experience, the\nfiles in your home directory persist between sessions.\n\nIf you do not need persistent storage, use Cloud Shell in ephemeral\nmode. In ephemeral mode, you can get started with Cloud Shell\nfaster because there is less set up and there is no disk attachment or archive.\nHowever, this means that all the files you create during your ephemeral mode\nsession are deleted with the VM when the session ends.\n\nTo choose ephemeral mode, append `ephemeral=true` to the\n`https://shell.cloud.google.com` URL. For example:\n`https://shell.cloud.google.com/?ephemeral=true`.\n\nThis does not work for `https://console.cloud.google.com` URLs.\n\nAlternatively, you can open the Cloud Shell\n**More** menu, select **Ephemeral\nmode** , and click **Save**.\n\nTo set ephemeral mode as your Cloud Shell default, enable **Always\nstart Cloud Shell in ephemeral mode** before you click **Save**.\n\n### Adjust the display window\n\nTo adjust the display window:\n\n1. Click **Hide** or\n **Restore**\n to hide or restore the session display.\n\n2. Click\n **Open Session in New Window** to detach the session as a new window.\n\n3. To close the detached window and re-open the session in the\n Google Cloud console, click\n\n **Activate Cloud Shell** at the top of the\n Google Cloud console window.\n\n4. To toggle between themes, click\n **Settings** and\n then click **Switch to Light Theme** or **Switch to Dark Theme**.\n\nWhat's next\n-----------\n\nNow that you're familiar with configuring Cloud Shell, you can\nstart to use the\n[pre-installed tools and commands](/shell/docs/how-cloud-shell-works#tools) from\nthe command line. You can also install additional tools in your\n[home directory](/shell/docs/how-cloud-shell-works#persistent_disk_storage) in\npersistent disk storage as needed.\n\n- [Learn how to use web preview](/shell/docs/using-web-preview)\n- [Explore examples of things you can do in Cloud Shell](/shell/docs/quickstart)"]]