Tag Archives: cat

Check Processor CPU information of Linux, Windows, HPUX and Solaris

Check Processor CPU information of Linux, Windows, HPUX and Solaris

Check Linux Processor or CPU information

$lscpu
eedBest Command
Quick summarylscpu
Deep technical detailscat /proc/cpuinfo
Live CPU usagetop / htop
Per‑core statsmpstat
Hardware‑level infodmidecode

Check HPUX Processor or CPU Information

# machinfo
CommandPurposeNotes
machinfoShows CPU model, speed, cores, logical processors, firmware, memoryRecommended primary command
`machinfogrep -i cpu`Filter CPU‑specific detailsUseful for quick checks
ioscan -fnkC processorLists processor hardware pathsGood for hardware inventory
topShows live CPU usageInstalled by default
sar -u 1 5CPU utilization over timeRequires sysstat package
psrinfo -vDisplays processor status and detailsSimilar to Solaris psrinfo
`dmesggrep -i cpu`Shows CPU info from boot logsHelpful after hardware changes
getconf HW_CPU_SUPP_BITSShows CPU bitness (32/64‑bit)OS‑level capability
getconf HW_NCPUNumber of CPUsQuick count
uname -mShows machine hardware modelNot detailed but useful
modelShows HP‑UX hardware modelOften 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