跳到正文
LEo的网络日志
返回

常用命令tips

curl -o /dev/null -s -w "%{http_code}\n" www.baidu.com
git commit --amend -m "new msg"
pip install -r requirements.txt --index-url https://pypi.tuna.tsinghua.edu.cn/simple

pip install -r requirements.txt --force-reinstall --index-url https://mirrors.aliyun.com/pypi/simple/
kubectl run curl-test --image=curlimages/curl:latest -- sleep 3600
kubectl exec -it curl-test -- /bin/sh
curl -I https://www.google.com

kubectl run -i --tty --rm debug --image=busybox --restart=Never -- sh
nslookup google.com

nc -zv 10.175.134.143 80

kubectl run -i --tty --rm debug --image=quay.io/aoc/netshoot:latest --restart=Never -- sh

kubectl run -i --tty --rm debug --image=nicolaka/netshoot --restart=Never -- sh
kubectl run -i --tty --rm debug --image=quay.io/aoc/ee-aap-azure-sre:latest --restart=Never -- sh
podman info |egrep 'graphRoot|overlay'
sudo lvextend -L +1G /dev/mapper/rootvg-homelv
sudo xfs_growfs /home
df -hP /home/ansible/
find . -type f -name "*ingress*"
docker pull ghcr.m.daocloud.io/fluxcd/source-controller:v1.2.4
kubectl debug node/aks-nodepool1-37663765-vmss000000 -it --image=mcr.microsoft.com/cbl-mariner/busybox:2.0

chroot /host
nc -vz psql.database.azure.com 5432
psql -h xxx.rds.amazonaws.com -U username awx
select count(*) from pg_stat_activity where datname ='subsection'


上一篇
python虚拟环境学习
下一篇
语义版本控制