Mlscpu
lscpu for macOS
Install / Use
/learn @pncnmnp/MlscpuREADME
mlscpu
mlscpu is a tool designed for collecting information about the CPU on macOS. This tool takes inspiration from lscpu tool used in Linux.
Motivation
Although there are various commands that can retrieve this information (as mentioned in this Stack Exchange thread), there is currently no concrete tool for this purpose.
Usage
Note: Apple Silicon is not yet supported.
To build mlscpu, run the following command:
go build -o mlscpu
This will create an executable file named mlscpu. Copy this file to the /usr/local/bin/ directory using the following command:
cp mlscpu /usr/local/bin/
You can now run mlscpu
[14:55][~] mlscpu
Architecture: x86_64
Byte Order: Little Endian
CPU(s): 4
On-line CPU(s): 4
Thread(s) per core: 2
Core(s) per socket: 2
Socket(s): 1
Vendor ID: GenuineIntel
CPU family: 6
CPU Model: 61
Model name: Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
Stepping: 4
CPU MHz: 1600
CPU max MHz: 1600
CPU min MHz: 1600
Hyper-Threading Technology: Enabled
L1d cache: 32K
L1i cache: 32K
L2 cache: 256K
L3 cache: 3072K
Flags: FPU VME DE PSE TSC MSR PAE MCE CX8 APIC SEP MTRR PGE MCA CMOV PAT
PSE36 CLFSH DS ACPI MMX FXSR SSE SSE2 SS HTT TM PBE SSE3 PCLMULQDQ DTES64
MON DSCPL VMX EST TM2 SSSE3 FMA CX16 TPR PDCM SSE4.1 SSE4.2 x2APIC MOVBE
POPCNT AES PCID XSAVE OSXSAVE SEGLIM64 TSCTMR AVX1.0 RDRAND F16C
[14:59][mlscpu]
Related Skills
node-connect
348.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.8kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
