of a server under Linux
You can see the details of each CPU in the/proc/cpuinfo under 1,linux. But for a dual-core CPU, you will see two CPUs in the Cpuinfo. It is often mistaken for a two single-core CPU. In fact, Physical processor id should be adopted to differentiate between mono-and dual-core. and Physical processor id can find . flags from Cpuinfo or DMESG if you have ht instructions to support Hyper-Threading Technology Determine the number of physical CPUs can see the value of physical id , the same is the same physical CPU2, view memory size: CAT /PROC/MEMINFO |GREP MEMTOTAL3, Other commands and methods that can be used to view detailed information:uname -a # View kernel//information command head -n 1 /etc/issue # View version, is the number 1 is not the letter Lcat /proc/cpuinfo # View Information Command hostname # View Linux System Information command for computer name lspci -tv # List all PCI devices LSUSB -TV # Lists Linux System Information commands for all USB devices Lsmod # List the loaded kernel modules env # View environment variable resource free -m # view memory usage and swap area usage df -h # view the usage of each partition Du -sh # View the size of the specified directory Grep memtotal /proc/meminfo # View Total Memory grep memfree /proc/meminfo # To view the amount of idle memory uptime # View System uptime, number of users, load cat /proc/loadavg # view system load disk and partition mount | column -t # View the status of a mounted partition fdisk -l # View all Partitions swapon -s # View All hdparm -i /dev/hda # View disk parameters (only for) dmesg | grep ide # To view the boot-time detection status network ifconfig # View all Properties iptables -l # View firewall Settings route -n # Viewing the routing table netstat -lntp # View all listening ports netstat -antp # View all established connections Netstat -s # viewing the network statistics process ps -ef # View All Processes top # real-time display of user w # View Active User id # View specified user information last # View Log cut -d: - /etc/passwd # View system All Users cut -d: - /etc/group # view system all groups crontab -l # View the current user's scheduled tasks service Chkconfig –list # List all system services chkconfig –list | grep on # Lists all system service programs that are started rpm -qa # View all installed packages cat /proc/cpuinfo : View Linux system commands for CPU-related parameters cat /proc/partitions : View the Linux hard disk and partition information System Information command cat /proc/meminfo : View Linux system memory Information Linux system command cat /proc/version : View version, similar to uname -rcat /proc/ioports : viewing device cat /proc/interrupts : viewing interrupts cat /proc/pci : View information for PCI device CAT /PROC/SWAPS : View information for all swap partitions
How to view the CPU and memory hardware information of the server under Linux