Common hardware Information viewing commands under Linux

Source: Internet
Author: User

1, look at the CPU model, here in order to facilitate viewing the combination of pipe characters with grep to match, of course, only the previous command can be, the command is as follows:

Cat grep " model name "

  

As a result, the CPU model and the main frequency are clearly seen,

2, look at the number of CPU bits, here are a variety of methods, we use the most direct and convenient way:

Getconf Long_bit

  

3. View the current operating system version under CentOS

Cat /etc/redhat-release

  

4. View the Linux kernel version

Only output kernel information: uname -R Output All information: uname -A

  

5. View the keyboard layout

Cat /etc/sysconfig/keyboard

  

6. Check the network card MAC address

View information for all network cards: ifconfig

  

The hwaddr in the figure is the MAC address of the ETH0 network card, and if there is a system that has no hwaddr, then enter is the MAC address

View information for a network adapter, such as eth0: ifconfig eth0

Other commands to view the network card address: IP link Show

  

Link/enter is behind the MAC address of the network card.

7. Check the time zone of the system and whether to use UTC time:

Cat /etc/sysconfig/clock

  

8. Check the operating time after the system is powered on

Uptime

  

You can see the current time 11:05, the system is running for 117 days and 5 minutes

9. View computer Memory

Free- H or free- m

-H is a humanized display,-M is displayed in m units

  

As you can see, there's 609M in the spare.

You can also use the command: grep memtotal/proc/meminfo for viewing, in units of K, conversion can be

  

10. Check the CPU's number of cores

Cat grep " CPU Cores "

  

  About the commonly used hardware information commands to discuss these, followed by a good command to continue to update

Common hardware Information viewing commands under Linux

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.