No Image

Sed and grep

August 15, 2020 root 3

sed sed ‘s/https://www.neyash.com/https://www.neyash.com/g’ ./* sed -n ‘1p;5p’/etc/passwd print 1 and 5line ‘1,5p’ print 1to5 line ‘1p;$p’ print 1st and last line sed -n ‘1,5p;25p;31,35p’ /etc/passwd […]

kubernetes

Kubernets command

August 15, 2020 root 0

kubectl commmand > kubectl Command ResourceType/kind Recourcename(kubectl commmand) Command get/describe/delete ResourceType/Kind pod/namespace/replicaset/replicacontroller/deployments/configmap Name mynameidpod/iamnamespace/iamreplicaset/iamconfigmap/ kubectl get pods (show running pods) kubectl get pods -w (watch […]