Linux viewing system Configuration common commands

Source: Internet
Author: User

System

# uname-a # view kernel/Os/cpu Info
# head-n 1/etc/issue # view OS version
# cat/proc/cpuinfo # View CPU Information
# hostname # view calculations Machine name
# LSPCI-TV # list all PCI devices
# LSUSB-TV # list all USB devices
# lsmod # list loaded kernel Modules
# env # View environment variable Resource
# free-m # View Memory usage Volume and swap Usage
# df-h # View each partition usage
# 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 uptime, number of users, load
# cat/proc/loadavg # View system load disk and partition
# 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 Startup I De device detection status Network
# ifconfig # View 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 process status User
# W # view active user
# ID # View specified user Information
# last # View user logon 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

Linux viewing system Configuration common commands

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.