Linux view common commands for System configuration

Source: Internet
Author: User

System

# uname-a # View kernel/operating system/CPU information

# head-n 1/etc/issue # View operating system version

# cat/proc/cpuinfo # View CPU Information

# hostname # View computer name

# LSPCI-TV # list all PCI devices

# LSUSB-TV # list all USB devices

# lsmod # list the loaded kernel modules

# env # View environment variable resources

# free-m # View memory usage and swap area usage

# df-h # View the usage of each partition

# du-sh # 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 the partition status of the hook

# 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 network at startup

# ifconfig # View properties of all network interfaces

# iptables-l # View firewall settings

# route-n # View the routing table

# netstat-lntp # View all listening ports

# netstat-antp # View all connections that have been established

# netstat-s # View 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 login log

# cut-d:-f1/etc/passwd # View All users of the system

# cut-d:-f1/etc/group # View all groups of the system

# crontab-l # View scheduled task services for the current user

# chkconfig–list # List all system services

# Chkconfig–list | grep on # Lists all the initiated system service programs

# 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.