Commands to view various parameter configurations of the Linux system
last |grep shutdown //View the last shutdown time
last |grep reboot //View the last reboot time
Detailed explanation of load top : https://www.cnblogs.com/gyrgyr/p/6100756.html
1. Linux CPU size
cat /proc/cpuinfo |grep "model name" && cat /proc/cpuinfo |grep "physical id"
Second, the memory size
cat /proc/meminfo |grep MemTotal
3. Hard disk size fdisk -l |grep Disk
Fourth, #View the linux system information command of the kernel / operating system /CPU information
uname -a
5. #Check the operating system version, it is the number 1 not the letter L
head -n 1 /etc/issue
6. #View the linux system information command of CPU information
cat /proc/cpuinfo
Seven, #View the linux system information command of the computer name
hostname
Eight, #List all PCI devices
lspci -tv
9. lsusb -tv #List the linux system information command of all USB devices
10. lsmod #List loaded kernel modules
Eleven, env #View environment variable resources
12. free -m #View memory usage and swap usage
Thirteen, df -h #View the usage of each partition
Fourteen, du -sh #View the size of the specified directory
15. grep MemTotal /proc/meminfo #View the total amount of memory
16. grep MemFree /proc/meminfo #View the amount of free memory
Seventeen, uptime #View system running time, number of users, load
Eighteen, cat /proc/loadavg #View system load disks and partitions
Nineteen, mount | column -t #View the mounted partition status
20. fdisk -l #View all partitions
21. swapon -s #View all swap partitions
22. hdparm -i /dev/hda #View disk parameters (only for IDE devices)
Twenty-three, dmesg | grep IDE #View IDE device detection status network at startup
Twenty-four, ifconfig #View the properties of all network interfaces
Twenty-five, iptables -L #View firewall settings
Twenty-six, route -n #View routing table
Twenty-seven, netstat -lntp #View all listening ports
Twenty-eight, netstat -antp #View all established connections
Twenty-nine, netstat -s #View network statistics process
Thirty, ps -ef #View all processes
Thirty-one, top # Real-time display of process status users
Thirty-two, w #View active users
Thirty-three, id #View the specified user information
Thirty-four, last #View user login log
Thirty-five, cut -d: -f1 /etc/passwd #View all users of the system
Thirty-six, cut -d: -f1 /etc/group #View all groups in the system
Thirty-seven, crontab -l #View the current user's scheduled task service
Thirty-seven, chkconfig –list #List all system services
Thirty-eighth, chkconfig –list | grep on #List all started system service programs
Thirty-nine, rpm -qa #View all installed packages
Forty, cat /proc/cpuinfo : Linux system command to view CPU -related parameters
Forty-one, cat /proc/partitions : system information command to view Linux hard disk and partition information
Forty-two, cat /proc/meminfo : Linux system command to view memory information of Linux system
Forty-three, cat /proc/version : View the version, similar to uname -r
Forty-four, cat /proc/ioports : View device io ports
Forty-five, cat /proc/interrupts : View interrupts
Forty-six, cat /proc/pci : view the information of the pci device
Forty-seven, cat /proc/swaps : View information about all swap partitions