磁盘 lsblk | awk ' /disk/ { if ($1 ~ /^sd/) { type = "SATA"; } else if ($1 ~ /^nvme/) { type = "NVME"; } else if ($1 ~ /^vd/) { type = "VIRTIO"; # 新增虚拟化磁盘类型 } else { type = "OTHER"; # 未知类型归类 } size = $4; count[type][size]++; } END { # 遍历所有类型输出 for (t in count) { for (s in count[t]) { printf "%s %s * %d\n", t, s, count[t][s]; } } }' 网卡 devices_info=$(ibv_devices | awk 'NR>2 {print $1}' | xargs -I {} sh -c 'rate=$(ibstat {} | grep "Rate" | awk "{print \$2 \" Gb/s\"}"); firmware=$(ibstat {} | grep "Firmware version" | awk "{print \$3}"); echo "{}: Firmware: $firmware, Rate: $rate"') echo "$devices_info" echo "总结:" echo "$devices_info" | grep -oP 'Rate: \K\d+' | sort | uniq -c | awk '{print $2 " Gb/s * " $1}'
每一级行政机构下设有内设和外管两套系统,外管指其管辖下级行政区划的机构,内设部门一般与其平级 国家部委只到处室(县处级),省和地级市只到科室(乡科级),县和乡到股/所(股级) 特殊规则 直辖市(北京、上海、天津、重庆)为省级行政单位,下属部门级别也均上调一级
Certified Kubernetes Application Developer Kubernetes 应用程序开发者认证 考试模式:线上 考试时间:2 小时 认证有效期:3 年 软件版本:Kubernetes v1.21 重考政策:可接受重考 经验水平:中级 考生需于购买考试后,12 个月内进行考试 通过认证考试的考生将获得 PDF 认证证书 问题预览 考试内容 Core Concepts: 13% Configuration: 18% Multi-Container Pods: 10% Observability: 18% Pod Design: 20% Services & Networking: 13% State Persistence: 8% 详细内容
本文手把手教你使用 GitHub Pages 和 Hugo 创建一个属于你的网站,包括博客系统,笔记系统等。