摘要:
1.通过进程替换 #!/bin/bash expect <(cat <<-delimiter set timeout 3 spawn ssh -l root 192.168.8.12 expect { "password" { send "exuberant\n" } } interact deli 阅读全文
posted @ 2022-09-28 19:34
ascertain
阅读(76)
评论(0)
推荐(0)
摘要:
函数 #!/bin/bash function b(){ for i in `seq 1 $2`;do echo -n "$1" done } b = 1 printf printf '=%.0s' {1..10} printf %10s | tr ' ' = seq tr seq -s= 10 | 阅读全文
posted @ 2022-09-28 17:28
ascertain
阅读(116)
评论(0)
推荐(0)
摘要:
dchelper.sh #!/bin/bash # global variables # scriptDir=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) scriptDir='' repositoryDir='' devopsHost='' dbHos 阅读全文
posted @ 2022-09-28 16:06
ascertain
阅读(23)
评论(0)
推荐(0)
摘要:
1: 修改Windows启动项 bootice EasyBCD EasyUEFI 2: 网络安全 acunetix kubeadm init \ --kubernetes-version=v1.21.3 \ --apiserver-advertise-address=192.168.8.11 \ - 阅读全文
posted @ 2022-09-28 12:31
ascertain
阅读(321)
评论(0)
推荐(0)
摘要:
sshd: ~/.ssh/environment client连接进来时, 会有此环境变量, sshd必须设置PermitUserEnvironment yes, 默认no client发送本地session的环境变量至sshd /etc/ssh/sshd_config /etc/ssh/ssh_c 阅读全文
posted @ 2022-09-28 11:56
ascertain
阅读(133)
评论(0)
推荐(0)

浙公网安备 33010602011771号