system
uname -a # View kernel / operating system / CPU information head -n 1 / etc / issue # check the OS version cat / proc / cpuinfo # View CPU information hostname # View the computer name lspci -tv # list all PCI devices lsusb - tv # lists all USB devices lsmod # listed loaded kernel module env # viewing environment variable
Resources
free -m # to view memory usage and the amount of swap df -h # see how each partition usage du -sh <directory name> # View the specified directory size grep MemTotal / proc / meminfo # view the amount of memory grep MemFree / proc / meminfo # view the amount of free memory uptime # View system uptime, number of users, load cat / proc / loadavg # View system load
Disk and partition
mount | column -t # View articulated partition status fdisk -l # View all partition swapon -s # View all swap partitions hdparm -i / dev / hda # View disk parameters (only for IDE devices) dmesg | grep IDE # when viewing start the IDE device detection status
The internet
ifconfig # View all the properties of the network interface iptables -L # View firewall settings route -n # View the 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 # display real-time process status
user
w # view active user id <user name> # Display the user information last # view the user login log cut -d: -f1 / etc / passwd # View all users of the system cut -d: -f1 / etc / group # View all system group crontab -l # to view the current user's scheduled tasks
service
chkconfig --list # lists all system services chkconfig --list | grep on # start lists all system services
program
rpm -qa # View all the packages installed
NIC models
lspci | grep Ethernet 00:19.0 Ethernet controller: Intel Corporation 82567V-2 Gigabit Network Connection
Hard Disk Information
df -h Filesystem Size Used Avail Use% Mounted on /dev/sda5 2.0G 272M 1.6G 15% / /dev/sda8 199G 188M 189G 1% /home /dev/sda3 9.7G 1.3G 7.9G 15% /usr /dev/sda2 9.7G 198M 9.0G 3% /var /dev/sda1 99M 17M 77M 18% /boot
hdparm -i /dev/sda
dmesg | grip ATA
Motherboard Model
dmidecode | more
2.10 dmidecode # SMBIOS 2.4 Present. Structures occupying 2318 bytes. The Table AT 0x000E84B0. The Handle 0x0000, DMI of the type 0, 24-bytes the BIOS Information Vendor: Intel Corp. Version: GTG4310H.86A.0019.2009.0625.1334 Release a Date: 06/25/2009 . .... System information server brand Manufacturer: Product the Name: (no information indicates the non-branded or unrecognized) Version: Serial Number The: UUID: 889BD67E-8D96-11DE-AC40-0013D4D9C9E8 the Wake-up Type: Power Switch SKU Number The: not Specified Family: Not Specified Handle 0x0002, DMI type 2, 15 bytes Base Board Information 主板型号/主板信息 Manufacturer: Intel Corporation Product Name: DG43GT Version: AAE62768-300 Serial Number: BTGT9340022N Processor Information CPU信息/CPU型号/CPU主频 Socket Designation: PROCESSOR Type: Central Processor Family: Pentium D Manufacturer: Intel(R) Corp. ID: 7A 06 01 00 FF FB EB BF Signature: Type 0, Family 6, Model 23, Stepping 10 Version: Pentium(R) Dual-Core CPU E6500 @ 2.93GHz Voltage: 1.2 V External Clock: 266 MHz Max Speed: 4000 MHz Current Speed: 2931 MHz Status: Populated, Enabled Upgrade: Socket LGA775 Cache Information 硬件和CPU缓存情况 Socket Designation: L1-Cache Configuration: Enabled, Not Socketed, Level 1 Operational Mode: Write Back Location: Internal Installed Size: 32 kB Maximum Size: 32 kB BIOS Language Information BIOS语言 Installable Languages: 1 en|US|iso8859-1 Currently Installed Language: en|US|iso8859-1 Physical Memory Array 主板最大支持内存 Location: System Board Or Motherboard Use: System Memory Error Correction Type: None Maximum Capacity: 16 GB Error Information Handle: Not Provided Number Of Devices: 4 Handle 0x002C, DMI type 19, 15 bytes Memory Array Mapped Address 目前的内存 Starting Address: 0x00000000000 Ending Address: 0x000FFFFFFFF Range Size: 4 GB Physical Array Handle: 0x002B Partition Width: 0 On Board Device Information 显卡型号 Type: Video Status: Enabled Description: Intelr GMA X4500 Video Device