Fix some shell command examples (#6143)
This commit is contained in:
@@ -47,16 +47,10 @@ Get a shell to the running Container:
|
|||||||
kubectl exec -it shell-demo -- /bin/bash
|
kubectl exec -it shell-demo -- /bin/bash
|
||||||
```
|
```
|
||||||
|
|
||||||
In your shell, list the running processes:
|
In your shell, list the root directory:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
root@shell-demo:/# ps aux
|
root@shell-demo:/# ls /
|
||||||
```
|
|
||||||
|
|
||||||
In your shell, list the nginx processes:
|
|
||||||
|
|
||||||
```shell
|
|
||||||
root@shell-demo:/# ps aux | grep nginx
|
|
||||||
```
|
```
|
||||||
|
|
||||||
In your shell, experiment with other commands. Here are
|
In your shell, experiment with other commands. Here are
|
||||||
@@ -67,10 +61,13 @@ root@shell-demo:/# ls /
|
|||||||
root@shell-demo:/# cat /proc/mounts
|
root@shell-demo:/# cat /proc/mounts
|
||||||
root@shell-demo:/# cat /proc/1/maps
|
root@shell-demo:/# cat /proc/1/maps
|
||||||
root@shell-demo:/# apt-get update
|
root@shell-demo:/# apt-get update
|
||||||
root@shell-demo:/# apt-get install tcpdump
|
root@shell-demo:/# apt-get install -y tcpdump
|
||||||
root@shell-demo:/# tcpdump
|
root@shell-demo:/# tcpdump
|
||||||
root@shell-demo:/# apt-get install lsof
|
root@shell-demo:/# apt-get install -y lsof
|
||||||
root@shell-demo:/# lsof
|
root@shell-demo:/# lsof
|
||||||
|
root@shell-demo:/# apt-get install -y procps
|
||||||
|
root@shell-demo:/# ps aux
|
||||||
|
root@shell-demo:/# ps aux | grep nginx
|
||||||
```
|
```
|
||||||
|
|
||||||
## Writing the root page for nginx
|
## Writing the root page for nginx
|
||||||
|
|||||||
Reference in New Issue
Block a user