Linux Query System Information command

Source: Internet
Author: User

Linux viewing system Information is a relatively basic knowledge, so this should all need to be mastered, commands and explanations are as follows:

#uname-A view operating system, kernel, CPU information

#head-n 1/etc/issue viewing operating system version information

#cat/proc/cpuinfo View CPU Information

#hostname View the computer name

#env View Environment variables

#free-M view memory usage and swap area usage

#df-H to view the usage of each partition

#du-sh < directory name > view specified directory Size

#grep memtotal/proc/meminfo View Total memory (case sensitive)

#grep Memfree/proc/meminfo View the total amount of free memory (case-sensitive)

#uptime View System uptime, number of users, load

#mount | Column-t to view the status of a mounted partition

#netstat-n View the routing table

#netstat-LNTP View all listening ports

#netstat-ANTP See all established links

#netstat-S View network statistics

#ps-EF View All Processes

#top Show process status users in real time

#w View Active Users

#id < user name > view specified user information

#last View User logon logs

#chkconfig--list List all system services

#chkconfig--list | grep on lists all started system services 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.