Linux view CPU information, number of physical CPUs, number of cores, number of logical CPUs

#View CPU information (model)
cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c

# Total number of cores = number of physical CPUs X number of cores per physical CPU
# total number of logical CPUs = physical Number of CPUs X Number of cores per physical CPU X Number of hyperthreads

# View the number of physical CPUs
cat /proc/cpuinfo| grep "physical id"| sort| uniq| wc -l

# View the number of cores in each physical CPU Number (ie number of cores)
cat /proc/cpuinfo| grep "cpu cores"| uniq

# View the number of logical CPUs
cat /proc/cpuinfo| grep "processor"| wc -l

http://www.2cto.com/ os/201704/635824.html

Find out if the port is open under windows
netstat -ano|find "5672"

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326213827&siteId=291194637