Common commands for Linux to get system information

Source: Internet
Author: User
Keywords Linux System Information common commands
Tags .mall aliyun cat command line common commands cpu display etc

Recently read some Linux command line articles, in the system information to learn a lot of commands. Think of a previously written article in fact, Linux so much easier to find these system information to view the command can also be summed up a small thing to come.

# CAT/PROC/MTRR View Mtrrs memory type range Registers

# uhttp://www.aliyun.com/zixun/aggregation/11696.html >name-r View current kernel version

# uname-a can view information including kernel version, machine hardware information, network node name, operating system name, etc.

# Cat/proc/cpuinfo View CPU Details

# DMESG list boot process record

# LSMOD List Loaded modules

# LSPCI List Equipment details

# lspci-v List more detailed kernel driver kernel module

# LSPCI-VVV Very detailed

# LSPCI > Lspci-note transfer lspci display to new file Lspci-note

#lspci >> Lspci-note Transport added to presence file Lspci-note

# Lspci | Pager pagination Display

System

# uname-a # View kernel/operating system CPU Information # head-n 1/etc/issue # view OS version # Cat/proc/cpuinfo # view CPU Information # hostname # view computer name # LSPCI-TV # List all PCI sets Prepare # LSUSB-TV # list all USB devices # lsmod # list loaded kernel modules # env # View Environment variables

Resources

# free-m # View memory usage and swap area usage # DF # View each partition usage # du-sh < directory name > # View the size of the specified directory # grep memtotal/proc/meminfo # View Total Memory # grep Memfree/ Proc/meminfo # View Idle memory # uptime # View system run time, number of users, load # cat/proc/loadavg # View System load

Disks and partitions

# Mount | Column-t # View attached partition status # fdisk-l # View all partitions # swapon-s # view all swap partitions # hdparm-i/DEV/HDA # View disk parameters (IDE devices only) # DMESG | grep IDE # View IDE Device detection status at startup

Internet

# 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 < username > # 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 of the system # Cron Tab-l # View Scheduled tasks for the current user

Service

# chkconfig--list # List all system Services # Chkconfig--list | grep on # Lists all initiated system services

Program

# rpm-qa # View all installed Packages

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.