#cat /proc/cpuinfo | grep "physical id" | uniq | wc -l
explain :uniq command : Delete duplicate lines ;wc –l command : Count rows
1.2 see CPU Kernel number
#cat /proc/cpuinfo | grep "cpu cores" | uniq
cpu cores : 4
explain :cpu The number of cores is 4
1.3 see CPU model
#cat /proc/cpuinfo | grep 'model name' |uniq
model name : Intel(R) Xeon(R) CPU E5630 @ 2.53GHz
in summary : The server has 2 individual 4 nucleus CPU, model Intel(R) Xeon(R) CPU E5630 @ 2.53GHz
2 view memory
2.1 View total memory
#cat /proc/meminfo | grep MemTotal
MemTotal: 32941268 kB // Memory 32G
2.2 View the number of memory modules
# dmidecode |grep -A16 "Memory Device$"
3 View hard disk
3.1 View hard disk size
# fdisk -l | grep Disk
Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
summary : Hard disk size 146.7G, That is, the trademark of the manufacturer 160G
4 Other command sets
uname -a # View kernel / operating system /CPU Informative linux system information
head -n l /etc/issue # View operating system version
cat /proc/cpuinfo # see CPU information
hostname # View the name of the computer linux System information command
lspci -tv # List all PCI equipment
lsusb -tv # List all USB Equipment linux System information command
lsmod # Lists the loaded kernel modules
env # View environment variable resources
free -m # View memory usage and swap 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 # View the amount of free memory
uptime # View system running time , Number of users , load
cat /proc/loadavg # View system load disks and partitions
mount | column -t # Viewing the status of attached partitions
fdisk -l # View all partitions
swapon -s # View all swap partitions
hdparm -i /dev/hda # View disk parameters ( Only for IDE equipment )
dmesg | grep IDE # View at startup IDE Device detection status network
ifconfig # View the properties of all network interfaces
iptables -L # View firewall settings
route -n # View routing table
netstat -lntp # View all listening ports
netstat -antp # View all established connections
netstat -s # View network statistics process
ps -ef # View all processes
top # Real time display of process status user
w # view active user
id # View specified user information
last # View user login log
cut -d: -f1 /etc/passwd # View all users of the system
cut -d: -f1 /etc/group # View all groups in the system
crontab -l # View the scheduled task service of the current user
chkconfig –list # List all system services
chkconfig –list | grep on # List all started system services
rpm -qa # View all installed packages
cat /proc/cpuinfo : see CPU Of relevant parameters linux System command
cat /proc/partitions : see linux System information commands for hard disk and partition information
cat /proc/meminfo : see linux Of system memory information linux System command
cat /proc/version : View version , similar uname -r
cat /proc/ioports : View device io port
cat /proc/interrupts : View interrupt
cat /proc/pci : see pci Device information
cat /proc/swaps : View all swap Partition information
Technology
Daily Recommendation