Reference: https://zhidao.baidu.com/question/621368750657770092.html
1. Check the memory size:
Cat/proc/meminfo |grep Memtotal
2, some other commands and methods to view detailed Linux system information:
UNAME-A # Linux System Information command to view kernel/Os/cpu information
Head-n 1/etc/issue # View OS version, is the number 1 not the letter L
Cat/proc/cpuinfo # Linux System Information command to view CPU information
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 of loaded kernel modules
ENV # View environment variable resources
Free-m # View memory usage and swap area usage
Df-h # Viewing the usage of each partition
Du-sh # Viewing the size of a specified directory
grep memtotal/proc/meminfo # View Total Memory
grep Memfree/proc/meminfo # Viewing the amount of free memory
Uptime # View System uptime, number of users, load
CAT/PROC/LOADAVG # Viewing system load disks and partitions
Mount | COLUMN-T # Viewing the status of a mounted partition
Fdisk-l # View all partitions
Swapon-s # View all swap partitions
Hdparm-i/dev/hda # View disk parameters (for IDE devices only)
DMESG | grep IDE # View IDE device detection network at startup
Ifconfig # View the properties of all network interfaces
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 process status users
W # View Active Users
ID # view specified user information
Last # View user log in log
cut-d:-f1/etc/passwd # View All users of the system
cut-d:-f1/etc/group # View all system groups
Crontab-l # View the current user's scheduled tasks service
Chkconfig–list # List all system services
Chkconfig–list | grep on # Lists all started system services programs
RPM-QA # View all installed Packages
Cat/proc/cpuinfo: Linux system commands to view CPU-related parameters
Cat/proc/partitions: View system Information commands for Linux hard disk and partition information
Cat/proc/meminfo: Linux system commands to view Linux system memory information
Cat/proc/version: View version, similar to Uname-r
Cat/proc/ioports: Viewing the device IO port
Cat/proc/interrupts: Viewing interrupts
CAT/PROC/PCI: Viewing information for PCI devices
Cat/proc/swaps: View information for all swap partitions
3.
Date: Query server time
date-d Mm/dd/yy Setting the current date
Date-s Hh:mm:ss Setting the current time
Date-d 10/17/2008
Date-s 10:12:13
How to query server information under Linux