"구글 클라우드쉘"의 두 판 사이의 차이

 
(같은 사용자의 중간 판 7개는 보이지 않습니다)
11번째 줄: 11번째 줄:
:쉘환경 자체는 비활성이지만, 홈 디렉토리에 저장하면 보존된다.
:쉘환경 자체는 비활성이지만, 홈 디렉토리에 저장하면 보존된다.


<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
testuser@cloudshell:~$ ps -ef
user01@cloudshell:~$ ll
UID          PID    PPID C STIME TTY          TIME CMD
total 40
root           1      0 0 16:20 ?        00:00:00 /bin/bash /google/scripts/onrun.sh sleep infinity
drwxr-xr-x 6 user01 user01 4096 Aug 5 14:08 ./
root          9      0 16:20 ?        00:00:00 /usr/sbin/rsyslogd
drwxr-xr-x 4 root   root  4096 Jan 19 2020 ../
root          26      0 16:20 ?        00:00:00 /usr/bin/python /usr/bin/supervisord -n -c /google/devshell/supervisord.conf --pidfile=/var/run/supervisor.pid --logfile=/var/log/supervisord.log
-rw------- 1 user01 user01  30 Aug 5 14:08 .bash_history
root          27      1 0 16:20 ?        00:00:00 logger -t supervisord
-rw-rw-r-- 1 user01 user01  95 Aug 5 14:08 .bashrc
root          83      1 0 16:20 ?        00:00:00 /usr/sbin/sshd -p 22 -o AuthorizedKeysFile=/etc/ssh/keys/authorized_keys
drwx------ 4 user01 user01 4096 Aug  5 14:08 .codeoss/
root        178      0 16:20 ?        00:00:00 /usr/bin/dockerd -p /var/run/docker.pid --mtu=1460 --registry-mirror=https://us-mirror.gcr.io
drwxrwxr-x 2 user01 user01 4096 Aug 5 14:08 .docker/
root        217    178  0 16:20 ?        00:00:00 containerd --config /var/run/docker/containerd/containerd.toml --log-level info
drwxrwxr-x 3 user01 user01 4096 Aug 5 14:08 .npm/
root        254      26 0 16:20 ?        00:00:00 /google/devshell/editor/proxy/theia-proxy -static-content-dir=/google/devshell/editor/theia/lib -etag-file=/google/devshell/editor/proxy/theia-etags.txt -theia-dir=/google/devshell/editor/theia
-rw-rw-r-- 1 user01 user01  96 Aug 5 14:08 .profile
root         255      26 0 16:20 ?        00:00:00 sudo /google/devshell/tmux-agent
-rw-r--r-- 1 user01 user01  913 Aug  5 14:08 README-cloudshell.txt
root        273     255  0 16:20 ?        00:00:00 /google/devshell/tmux-agent
-rw-r--r-- 1 user01 user01    0 Aug  5 14:08 .sudo_as_admin_successful
root        477      1 0 16:20 ?        00:00:00 sleep infinity
drwxr-xr-x 2 user01 user01 4096 Aug 5 14:08 .vscode/
root        494      83 0 16:20 ?        00:00:00 sshd: g468025791368_compute [priv]
</syntaxhighlight>
g404883+    496    494  0 16:20 ?        00:00:00 sshd: g468025791368_compute@pts/0
<syntaxhighlight lang='console'>
g404883+    497    496  0 16:20 pts/0    00:00:00 bash -l
user01@cloudshell:~$ df -h
g404883+    766    497  0 16:23 pts/0    00:00:00 ps -ef
Filesystem                        Size  Used Avail Use% Mounted on
overlay                            114G  57G  57G  51% /
tmpfs                              64M    0  64M  0% /dev
/dev/sda1                          114G  57G  57G  51% /root
/dev/disk/by-id/google-home-part1  4.8G  1.5M  4.6G  1% /home
/dev/root                         2.0G 1.2G  820M  59% /usr/lib/modules
shm                                64M     0   64M  0% /dev/shm
tmpfs                              3.2G 860K 3.2G  1% /google/host/var/run
...
</syntaxhighlight>
</syntaxhighlight>
<syntaxhighlight lang='console'>
<syntaxhighlight lang='console'>
user01@cloudshell:~$ pstree -A
user01@cloudshell:~$ pstree -A
bash-+-dockerd-+-containerd---10*[{containerd}]
bash-+-dockerd-+-containerd---8*[{containerd}]
     |        `-10*[{dockerd}]
     |        `-12*[{dockerd}]
     |-logger
     |-logger
     |-python-+-sudo---tmux-agent---4*[{tmux-agent}]
     |-python-+-editor-proxy-+-runuser---bash---sh---node-+-node-+-node---6*[{node}]
     |        `-theia-proxy---4*[{theia-proxy}]
    |        |              |                            |      |-node---10*[{node}]
    |        |              |                            |      `-11*[{node}]
    |        |              |                            `-10*[{node}]
     |        |              `-6*[{editor-proxy}]
    |        `-sudo---tmux-agent---4*[{tmux-agent}]
     |-rsyslogd---3*[{rsyslogd}]
     |-rsyslogd---3*[{rsyslogd}]
     |-sleep
     |-sleep
     `-sshd---sshd---sshd---bash---pstree
    |-sshd-+-sshd---sshd---bash---bash
    |     `-sshd---sshd---bash---start-shell.sh---tmux
    `-tmux---bash---pstree
</syntaxhighlight>
</syntaxhighlight>


==같이 보기==
==같이 보기==
{{z컬럼3|
* [[쉘]]
* [[쉘]]
* [[gcloud]]
* [[gcloud]]
* [[클라우드 쉘]]
* [[클라우드 쉘]]
* [[cloudshell aliases]]
* [[cloudshell aliases]]
* [[Cloud Shell 크롬 앱]]
* [[/usr/local/bin/cloudshell]]
* [[/google/scripts/onrun.sh]]
* [[/google/scripts/onrun.sh]]
* [[우분투 gcloud 명령어 설치]]
* [[우분투 gcloud 명령어 설치]]
56번째 줄: 72번째 줄:
* [[/var/run/docker/containerd/containerd.toml]]
* [[/var/run/docker/containerd/containerd.toml]]
* [[AWS 세션 매니저]]
* [[AWS 세션 매니저]]
}}


==참고==
==참고==

2024년 8월 5일 (월) 23:10 기준 최신판

1 개요[ | ]

Google Cloud Shell
구글 Cloud Shell, 구글 클라우드 쉘
  • 온라인 배쉬쉘, 데비안 기반
  • 프리티어(free tier)
  • 웹브라우저 등에서 GCP를 편리하게 관리할 수 있는 쉘환경
  • "어떤 브라우저에서든 커맨드라인으로 인프라 및 애플리케이션 관리[1]"
  • "기본 요건 필요 없음" - "bash, kubectl, docker, gcloud 명령줄 도구 등 원하는 도구를 사용하여 시작하세요. 모두 사전 설치되어 있고 항상 최신 상태를 유지하며 즉시 사용할 수 있습니다."
  • 1.7 GB 메모리
  • 영구 디스크 스토리지 5 GB ( $HOME 디렉토리 )
쉘환경 자체는 비활성이지만, 홈 디렉토리에 저장하면 보존된다.
user01@cloudshell:~$ ll
total 40
drwxr-xr-x 6 user01 user01 4096 Aug  5 14:08 ./
drwxr-xr-x 4 root   root   4096 Jan 19  2020 ../
-rw------- 1 user01 user01   30 Aug  5 14:08 .bash_history
-rw-rw-r-- 1 user01 user01   95 Aug  5 14:08 .bashrc
drwx------ 4 user01 user01 4096 Aug  5 14:08 .codeoss/
drwxrwxr-x 2 user01 user01 4096 Aug  5 14:08 .docker/
drwxrwxr-x 3 user01 user01 4096 Aug  5 14:08 .npm/
-rw-rw-r-- 1 user01 user01   96 Aug  5 14:08 .profile
-rw-r--r-- 1 user01 user01  913 Aug  5 14:08 README-cloudshell.txt
-rw-r--r-- 1 user01 user01    0 Aug  5 14:08 .sudo_as_admin_successful
drwxr-xr-x 2 user01 user01 4096 Aug  5 14:08 .vscode/
user01@cloudshell:~$ df -h
Filesystem                         Size  Used Avail Use% Mounted on
overlay                            114G   57G   57G  51% /
tmpfs                               64M     0   64M   0% /dev
/dev/sda1                          114G   57G   57G  51% /root
/dev/disk/by-id/google-home-part1  4.8G  1.5M  4.6G   1% /home
/dev/root                          2.0G  1.2G  820M  59% /usr/lib/modules
shm                                 64M     0   64M   0% /dev/shm
tmpfs                              3.2G  860K  3.2G   1% /google/host/var/run
...
user01@cloudshell:~$ pstree -A
bash-+-dockerd-+-containerd---8*[{containerd}]
     |         `-12*[{dockerd}]
     |-logger
     |-python-+-editor-proxy-+-runuser---bash---sh---node-+-node-+-node---6*[{node}]
     |        |              |                            |      |-node---10*[{node}]
     |        |              |                            |      `-11*[{node}]
     |        |              |                            `-10*[{node}]
     |        |              `-6*[{editor-proxy}]
     |        `-sudo---tmux-agent---4*[{tmux-agent}]
     |-rsyslogd---3*[{rsyslogd}]
     |-sleep
     |-sshd-+-sshd---sshd---bash---bash
     |      `-sshd---sshd---bash---start-shell.sh---tmux
     `-tmux---bash---pstree

2 같이 보기[ | ]

3 참고[ | ]

  1. Manage your infrastructure and applications from the command-line in any browser
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}