2026-03-12 20:23:15

This commit is contained in:
root
2026-03-12 21:23:47 +01:00
parent eab4b36eca
commit 93039b8489
3332 changed files with 699614 additions and 0 deletions

18
vdh/cpu_table.sh Normal file
View File

@@ -0,0 +1,18 @@
#!/bin/bash
gawk '
BEGIN {
FS = ":"
printf "%5-s %6-s %4-s\n", "OS ID", "Socket", "Core"
printf "%5-s %6-s %4-s\n", "-----", "------", "----"
}
{
if ($1 ~ /processor/) {
PROC = $2
} else if ($1 ~ /physical id/) {
PHYID = $2
} else if ($1 ~ /core id/) {
CID = $2
printf "%5s %6s %4s\n", PROC, PHYID, CID
}
}' /proc/cpuinfo