ossutil64 替换 lrzsz 方法
摘要:#!/bin/sh wget http://gosspublic.alicdn.com/ossutil/1.7.0/ossutil64 chmod 755 ./ossutil64 #!/bin/sh ## 设置oss 变量配置 OSS_REGION="oss-cn-shenzhen" OSS_PRO
阅读全文
shell perl 等
摘要:curl status code #/bin/bash # curl # -I 仅测试HTTP头 # -m 10 最多查询10s # -o /dev/null 屏蔽原有输出信息 # -s silent 模式,不输出任何东西 # -w %{http_code} 控制额外输出 # 正则比较 # [[ "
阅读全文
shell sed
摘要:在两行匹配之间插入一行 sed两个匹配行之间插入一行,例如有文本aa: aaa bbb ccc aaa ddd 在aaa、bbb插入hello world,命令如下: sed '/aaa/{n;s/bbb/hello world\n&/g}' aa aaa hello world bbb ccc a
阅读全文
arthas use
摘要:jmap -dump:format=b,file=/c kubectl get pod --all-namespaces -o wide | grep -i 'alluxio' kubectl exec -ti alluxio-master-0 /bin/bash kubectl get pod -
阅读全文
SHELL
摘要:SHELL # K8S ## k8s 查询出 容器ip后, curl 查询健康检查, 并对返回非200的应用, 打印名称 kubectl get pod --all-namespaces -o wide --field-selector=status.phase=Running |awk '/(md
阅读全文