Linux system view hardware and System Information Common command summary

Source: Internet
Author: User

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 # View the status of the attached 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 # list all started system services
Rpm-qa # View all installed packages
Cat/proc/cpuinfo # Linux system commands for viewing 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 device IO ports
cat/proc/interrupts # Viewing interrupts
CAT/PROC/PCI # Viewing information for PCI devices
Cat/proc/swaps # View information for all swap partitions

Linux system view hardware and System Information Common command summary

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.