Fix some shell command examples (#6143)

This commit is contained in:
Qiming
2017-11-03 02:22:45 +08:00
committed by Zach Corleissen
parent 67608df60b
commit 73acc5e28f
@@ -47,16 +47,10 @@ Get a shell to the running Container:
kubectl exec -it shell-demo -- /bin/bash
```
In your shell, list the running processes:
In your shell, list the root directory:
```shell
root@shell-demo:/# ps aux
```
In your shell, list the nginx processes:
```shell
root@shell-demo:/# ps aux | grep nginx
root@shell-demo:/# ls /
```
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/1/maps
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:/# apt-get install lsof
root@shell-demo:/# apt-get install -y 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