Cloud Shell을 사용하면 Google Cloud Console에서 열리는 터미널 창에서 명령줄을 통해 가상 머신 인스턴스에 액세스할 수 있습니다. 동일한 인스턴스에 대한 여러 셸 연결을 열 수 있습니다.
사용 가능한 gcloud CLI 명령어를 보려면 gcloud --help를 실행합니다.
명령줄에서 Google Cloud CLI 및 기타 유틸리티에 액세스할 수 있을 뿐 아니라 cloudshell 명령어를 사용하여 튜토리얼을 시작하고, Cloud Shell 편집기를 열고, 파일을 다운로드할 수 있습니다.
자세한 내용은 cloudshell help을 실행하여 확인하세요.
디스플레이 스크롤
브라우저 포커스가 세션 탭에 있는 상태에서 마우스를 사용하는 것 외에도 Ctrl+Shift+PageUp / Ctrl+Shift+PageDn(Windows 및 Linux) 또는 Fn+Shift+Up / Fn+Shift+Down(Mac OS X)를 사용하여 스크롤할 수도 있습니다.
텍스트 복사하여 붙여넣기
텍스트를 복사하고 붙여넣으려면 다음을 수행하세요.
마우스를 사용하여 세션 디스플레이 또는 다른 창에서 일부 텍스트를 선택합니다.
텍스트를 복사하려면 Ctrl+C(Windows 또는 Linux) 또는 Cmd+C(macOS)를 누릅니다.
커서 위치에 붙여넣으려면 Ctrl+V(Windows 또는 Linux) 또는 Cmd+V(macOS)를 누릅니다.
Google Cloud 콘솔을 사용하여 키 조합 보내기
키 조합 보내기를 클릭한 후 Ctrl+V를 누릅니다.
터미널 설정 구성
터미널 설정을 조정하려면 설정을 클릭합니다. 이 메뉴에서 테마, 글꼴 유형과 크기에 대한 터미널 환경을 설정하고 복사, 키보드, 스크롤바 기본 설정을 지정할 수 있습니다.
키보드 레이아웃 지원
국제 키보드를 사용 중이거나 키 결합을 맞춤설정하려는 경우 Cloud Shell을 사용하면 Alt Gr(특수키)로 동작할 키를 지정할 수 있습니다. 키 매핑을 지정하려면 터미널 설정 메뉴로 이동하고 단말기 환경설정 > 키보드 > Alt Gr 키를 선택한 후, 다음 옵션 중 하나를 선택하세요.
자동 - 브라우저 언어를 기반으로 자동 감지
없음 - 모든 AltGr 관련 조작 사용 중지
Ctrl-Alt - Ctrl+Alt를 AltGr로 설정
왼쪽-Alt - 왼쪽 Alt 키를 AltGr로 설정
오른쪽-Alt - 오른쪽 Alt 키를 AltGr로 설정
또한 'Alt 키를 메타 키로 쓰기'를 설정하여 Alt 키가 메타 키로 작동하도록 지정할 수 있습니다.
터미널 세션 여러 개 열기
추가 세션을 열려면 Cloud Shell 창 상단에서 Cloud Shell 세션 추가를 클릭합니다. 각 세션은 동일한 가상 머신 인스턴스에 연결됩니다. 새로운 세션을 열면 Google Cloud 콘솔 하단에 새로운 탭으로 표시됩니다.
탭 제목 맞춤설정
Cloud Shell은 탭 제목 설정의 xterm 이스케이프 시퀀스를 파악합니다. 탭 제목 이름을 바꾸려면 .bashrc에서 PS1 환경 변수를 원하는 구성으로 설정하고 변경사항을 적용할 .bashrc 소스를 가져옵니다.
[[["이해하기 쉬움","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 the Cloud Shell Terminal\n\nThis page describes how to use the Cloud Shell Terminal. The\n[Gemini CLI](#use-gemini-cli) is available in Cloud Shell without\nadditional setup.\n\nUse the terminal\n----------------\n\nCloud Shell provides command-line access to the virtual machine\ninstance in a terminal window that opens in the Google Cloud console. You can open\nmultiple shell connections to the same instance.\n\nTo view the gcloud CLI available commands, run `gcloud --help`.\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\nFor more information, run `cloudshell help`.\n\n### Scroll the display\n\nIn addition to using your mouse while browser focus is on a session tab, you can\nscroll by pressing `Ctrl`+`Shift`+`PageUp` / `Ctrl`+`Shift`+`PageDn`\n(Windows and Linux) or `Fn`+`Shift`+`Up` / `Fn`+`Shift`+`Down` (on Mac OS X).\n\n### Copy and paste text\n\nTo copy and paste text:\n\n1. Select some text in the session display or another window using your\n mouse.\n\n2. To copy the text, press `Ctrl`+`C` (on Windows or Linux) or `Cmd`+`C`\n (on macOS).\n\n3. To paste at your cursor location, press `Ctrl`+`V` (on Windows or Linux) or\n `Cmd`+`V` (on macOS).\n\n### Send a key combination using the Google Cloud console\n\nClick\n**Send Key Combination** and then press `Ctrl`+`V`.\n\nConfigure terminal settings\n---------------------------\n\nTo adjust your terminal settings, click\n**Settings**. In this\nmenu, you can set your Terminal preferences for theme, font type and size, and\ncopy, keyboard and scrollbar default settings.\n\n### Keyboard layout support\n\nIf you're using an international keyboard or would like to customize your\nkey bindings, Cloud Shell allows you to specify which key behaves\nas Alt Gr (your modifier key). To specify key mapping, go to the\n**Terminal Settings** menu, select\n**Terminal Preferences** \\\u003e **Keyboard** \\\u003e **Alt Gr Key** and choose one of the\nfollowing options:\n\n- Auto - Autodetect based on browser language\n- None - Disable any AltGr related munging\n- Ctrl-Alt - Set Ctrl+Alt as AltGr\n- Left-Alt - Set left Alt as AltGr\n- Right-Alt - Set right Alt as AltGr\n\nAdditionally, you can set 'Alt is meta' to specify that your alt key should\nbehave as a meta key.\n\nOpen multiple terminal sessions\n-------------------------------\n\nTo open additional sessions, click\n\n**Add Cloud Shell Session** at the top of the\nCloud Shell window. Each session connects to the same virtual\nmachine instance. When you open a new session, it appears in a new tab at the\nbottom of the Google Cloud console.\n\nTab title customization\n-----------------------\n\nCloud Shell understands xterm escape sequences for\n[setting tab titles](http://tldp.org/HOWTO/Xterm-Title-4.html#ss4.3). To rename\na tab title, set the `PS1` environment variable in your .bashrc to your\ndesired configuration and source your .bashrc for the change to take.\n\nUse the Gemini CLI\n------------------\n\nTo use the [Gemini CLI](/gemini/docs/codeassist/gemini-cli) in\nCloud Shell, run `gemini` in the Cloud Shell terminal.\n\nTo get started with the Gemini CLI, see the\n[Gemini CLI documentation](https://github.com/google-gemini/gemini-cli)."]]