linux system physical cpu information inquiry

1. Check the CPU model
           CAT / proc / cpuinfo | grep name | Cut -f2 -d: | uniq -c 
 2. Check the physical CPU number
             cat / proc / cpuinfo | grep " physical id" | sort | uniq | wc -
3. See logical CPU number
               CAT / proc / cpuinfo | grep "Processor" | -l WC 
4. See few CPU core
                cat / proc / cpuinfo | grep "  cores" | uniq

Guess you like

Origin www.cnblogs.com/cnqfz/p/11229960.html