Linux System hardware Configuration view method

Source: Internet
Author: User

One: View CPU

More/proc/cpuinfo | grep "model name"

grep "model name"/proc/cpuinfo

If you feel the need to see more comfortable

grep "model Name"/proc/cpuinfo | Cut-f2-d:

Two: View memory

grep memtotal/proc/meminfo

grep Memtotal/proc/meminfo | Cut-f2-d:

Free-m |grep "Mem" | awk ' {print $} '

Three: Check whether the CPU is 32-bit or 64-bit

Getconf Long_bit

Four: Viewing the default language

Echo $LANG $LANGUAGE

V: View kernel version

Uname-r

Uname-a

VI: View current time

Date

Seven: View hard disks and partitions

Df-h

Fdisk-l

You can see all the space occupied

Du/etc-sh

You can see the size of this directory

11: View Ip,mac Address

In the Ifcfg-eth0 file you can see Mac, Gateway and other information.

Ifconfig

Cat/etc/sysconfig/network-scripts/ifcfg-eth0 | grep ipaddr

Cat/etc/sysconfig/network-scripts/ifcfg-eth0 | grep ipaddr | Cut-f2-d=

Ifconfig eth0 |grep "inet addr:" |awk ' {print $} ' |cut-c 6-

Ifconfig | grep ' inet addr: ' | Grep-v ' 127.0.0.1 ' | Cut-d:-f2 | awk ' {print '} '

View Gateway

Cat/etc/sysconfig/network

View DNS

Cat/etc/resolv.conf

Linux System hardware Configuration view method

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.