Linux server configuration several cpu Java code more/proc/cpuinfo | grep "physical id" | uniq | wc-l each cpu is several cores (assuming the cpu configuration is the same) java code more/proc/cpuinfo | grep "physical id" | grep "0" | wc-l Java code cat/proc/cpuinfo | grep processor 1. check the number of physical CPUs. Java code # cat/proc/cpuinfo | grep "physical id" | sort | uniq | wc-l 2. view the number of logical CPUs Java code # cat/proc/cpuinfo | grep "processor" | wc-l 3. check the number of CPU cores in Java # cat/proc/cpuinfo | grep "cores" | uniq 4. query Check the CPU clock speed Java code # cat/proc/cpuinfo | grep MHz | uniq Java code # uname-a Linux euis1 2.6.9-55. ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux (view the kernel information of the current operating system) java code # cat/etc/issue | grep Linux Red Hat Enterprise Linux AS release 4 (Nahant Update 5) (view information about the current operating system release) java code # cat/proc/cpuinfo | grep name | cut-f2-d: | uniq-c 8 Intel (R) Xeon (R) CPU E5410 @ 2.33 GHz (we can see eight logical CPUs and CP Java code # cat/proc/cpuinfo | grep physical | uniq-c 4 physical id: 0 4 physical id: 1 (actually two 4-core CPUs) java code # getconf LONG_BIT 32 (indicating that the current CPU runs in 32bit mode, but does not indicate that the CPU does not support 64bit) java code # cat/proc/cpuinfo | grep flags | grep 'lm '| wc-l 8 (the result is greater than 0, indicating 64bit computing is supported. lm refers to long mode, supports lm is 64bit) how to obtain CPU details: linux Command: Java code cat/proc/cpuinfo using commands to determine several physical CPUs, cores, etc: logical CPU count: Java code # cat/proc/cpuinfo | grep" Processor "| wc-l number of physical CPUs: Java code # cat/proc/cpuinfo | grep" physical id "| sort | uniq | wc-l number of cores in each physical CPU: java code # cat/proc/cpuinfo | grep "cpu cores" | is wc-l hyper-threading? If two logical CPUs have the same core id, hyper-threading is enabled. Number of logical CPUs (possibly core, threads, or both) in each physical CPU: Java code # cat/proc/cpuinfo | grep "siblings" view folder size Java code du-sh *