[root@k8smaster ~]# kubectl get pods
NAME READY STATUS RESTARTS AGE
nginx-6799fc88d8-62njk 1/1 Running 2 12h
tomcat-7d987c7694-59x5l 1/1 Running 1 147m
[root@k8smaster ~]#
[root@k8smaster ~]# kubectl exec -it tomcat-7d987c7694-59x5l /bin/bash
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat#
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat#
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat#
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat#
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# ls
bin BUILDING.txt conf CONTRIBUTING.md lib LICENSE logs native-jni-lib NOTICE README.md RELEASE-NOTES RUNNING.txt temp webapps webapps.dist work
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# ls -l
total 128
drwxr-xr-x 2 root root 4096 Oct 14 01:08 bin
-rw-r--r-- 1 root root 20123 Oct 3 12:42 BUILDING.txt
drwxr-xr-x 1 root root 22 Oct 16 02:56 conf
-rw-r--r-- 1 root root 6210 Oct 3 12:42 CONTRIBUTING.md
drwxr-xr-x 2 root root 4096 Oct 14 01:07 lib
-rw-r--r-- 1 root root 60393 Oct 3 12:42 LICENSE
drwxrwxrwx 1 root root 80 Oct 16 02:56 logs
drwxr-xr-x 2 root root 158 Oct 14 01:07 native-jni-lib
-rw-r--r-- 1 root root 2333 Oct 3 12:42 NOTICE
-rw-r--r-- 1 root root 3398 Oct 3 12:42 README.md
-rw-r--r-- 1 root root 6775 Oct 3 12:42 RELEASE-NOTES
-rw-r--r-- 1 root root 16073 Oct 3 12:42 RUNNING.txt
drwxrwxrwx 2 root root 30 Oct 14 01:07 temp
drwxr-xr-x 2 root root 6 Oct 14 01:07 webapps
drwxr-xr-x 7 root root 81 Oct 3 12:42 webapps.dist
drwxrwxrwx 2 root root 6 Oct 3 12:42 work
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# cd webapps
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat/webapps# ls
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat/webapps# cd ..
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# mv webapps webapps2
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# ls
bin BUILDING.txt conf CONTRIBUTING.md lib LICENSE logs native-jni-lib NOTICE README.md RELEASE-NOTES RUNNING.txt temp webapps2 webapps.dist work
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# ls -l
total 128
drwxr-xr-x 2 root root 4096 Oct 14 01:08 bin
-rw-r--r-- 1 root root 20123 Oct 3 12:42 BUILDING.txt
drwxr-xr-x 1 root root 22 Oct 16 02:56 conf
-rw-r--r-- 1 root root 6210 Oct 3 12:42 CONTRIBUTING.md
drwxr-xr-x 2 root root 4096 Oct 14 01:07 lib
-rw-r--r-- 1 root root 60393 Oct 3 12:42 LICENSE
drwxrwxrwx 1 root root 80 Oct 16 02:56 logs
drwxr-xr-x 2 root root 158 Oct 14 01:07 native-jni-lib
-rw-r--r-- 1 root root 2333 Oct 3 12:42 NOTICE
-rw-r--r-- 1 root root 3398 Oct 3 12:42 README.md
-rw-r--r-- 1 root root 6775 Oct 3 12:42 RELEASE-NOTES
-rw-r--r-- 1 root root 16073 Oct 3 12:42 RUNNING.txt
drwxrwxrwx 2 root root 30 Oct 14 01:07 temp
drwxr-xr-x 2 root root 6 Oct 14 01:07 webapps2
drwxr-xr-x 7 root root 81 Oct 3 12:42 webapps.dist
drwxrwxrwx 2 root root 6 Oct 3 12:42 work
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat#
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# cd webapps.dist/
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat/webapps.dist# ls
docs examples host-manager manager ROOT
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat/webapps.dist# cd ..
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# mv webapps.dist/ webapps
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# ls
bin BUILDING.txt conf CONTRIBUTING.md lib LICENSE logs native-jni-lib NOTICE README.md RELEASE-NOTES RUNNING.txt temp webapps webapps2 work
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# ls -l
total 128
drwxr-xr-x 2 root root 4096 Oct 14 01:08 bin
-rw-r--r-- 1 root root 20123 Oct 3 12:42 BUILDING.txt
drwxr-xr-x 1 root root 22 Oct 16 02:56 conf
-rw-r--r-- 1 root root 6210 Oct 3 12:42 CONTRIBUTING.md
drwxr-xr-x 2 root root 4096 Oct 14 01:07 lib
-rw-r--r-- 1 root root 60393 Oct 3 12:42 LICENSE
drwxrwxrwx 1 root root 80 Oct 16 02:56 logs
drwxr-xr-x 2 root root 158 Oct 14 01:07 native-jni-lib
-rw-r--r-- 1 root root 2333 Oct 3 12:42 NOTICE
-rw-r--r-- 1 root root 3398 Oct 3 12:42 README.md
-rw-r--r-- 1 root root 6775 Oct 3 12:42 RELEASE-NOTES
-rw-r--r-- 1 root root 16073 Oct 3 12:42 RUNNING.txt
drwxrwxrwx 2 root root 30 Oct 14 01:07 temp
drwxr-xr-x 7 root root 81 Oct 3 12:42 webapps
drwxr-xr-x 2 root root 6 Oct 14 01:07 webapps2
drwxrwxrwx 1 root root 22 Oct 16 03:35 work
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat#
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat#
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat# ls webapps
docs examples host-manager manager ROOT
root@tomcat-7d987c7694-59x5l:/usr/local/tomcat#