Check Processor CPU information of Linux, Windows, HPUX and Solaris
Check Linux Processor or CPU information
$lscpu
| eed | Best Command |
|---|
| Quick summary | lscpu |
| Deep technical details | cat /proc/cpuinfo |
| Live CPU usage | top / htop |
| Per‑core stats | mpstat |
| Hardware‑level info | dmidecode |
Check HPUX Processor or CPU Information
# machinfo
| Command | Purpose | Notes |
|---|
machinfo | Shows CPU model, speed, cores, logical processors, firmware, memory | Recommended primary command |
| `machinfo | grep -i cpu` | Filter CPU‑specific details | Useful for quick checks |
ioscan -fnkC processor | Lists processor hardware paths | Good for hardware inventory |
top | Shows live CPU usage | Installed by default |
sar -u 1 5 | CPU utilization over time | Requires sysstat package |
psrinfo -v | Displays processor status and details | Similar to Solaris psrinfo |
| `dmesg | grep -i cpu` | Shows CPU info from boot logs | Helpful after hardware changes |
getconf HW_CPU_SUPP_BITS | Shows CPU bitness (32/64‑bit) | OS‑level capability |
getconf HW_NCPU | Number of CPUs | Quick count |
uname -m | Shows machine hardware model | Not detailed but useful |
model | Shows HP‑UX hardware model | Often used with machinfo |
Check solaris processor Information:
--Count
psrinfo -p
-- Details
psrinfo -vp
--syntax:
psrinfo [-p] [-v] [processor_id…]
kstat -p cpu_info | less
--Finding cores
kstat cpu_info|grep core_id|sort -u|wc -l
Check Windows Processor Information
WMIC CPU Get DeviceID,NumberOfCores,NumberOfLogicalProcessors
WMIC CPU Get /Format:List
Like this:
Like Loading...