View the machine configuration commands in Linux.

Source: Internet
Author: User

CAT/proc/
Cpuinfo

Or Vim/proc/
Cpuinfo

View System Information

CAT/proc/
Cpuinfo-CPU (I. e. Vendor, MHz, flags like MMX)

CAT/proc/interrupts-interrupt

CAT/proc/ioports-device IO port

CAT/proc/meminfo-memory information (I. e. mem used, free, swap size)

CAT/proc/Partitions-all partitions of all devices

CAT/proc/PCI-PCI device information

CAT/proc/SWAPs-information about all swap partitions

CAT/proc/version-linux version is equivalent to uname-R

Uname-a-view system kernel and other information

How to view the Linux system version:

CAT/etc/RedHat-release

CAT/etc/issue

CAT/proc/version

View disk space size:

DF-m

CAT/etc/issue view the operating system version

CAT/etc/inittab

CAT/proc/cpuinfo
View CPU Information

Uname-a system version

DF-H hard disk Query

CAT/etc/passwd view the list of all users

CAT/etc/group view User Group

View the current folder size in Du-SH

In Linux, dmidecode is used to view hardware information.

Dmidecode is a tool for dumping a computer ''' s DMI (some say smbios) Table contents in a human-readable format. This table contains a description
The system ''' s hardware components, as well as other useful pieces of information such as serial numbers and bios revision. thanks to this table, you can retrieve this information without having to probe for the actual hardware. while this is a good point
In terms of report speed and safeness, this also makes the presented information possibly unreliable.

Dmidecode comprehensively displays bios, CPU, memory, and other hardware information.

View the serial number of the motherboard

Dmidecode | grep "Serial Number"

Displays the number of physical memory blocks.

Dmidecode | grep-A16 "memory device $"

Display CPU Information

Dmidecode | grep-a42 "processor" | more

In addition:

Grep-an (A and N can also have spaces) to output rows containing the specified string and N rows following the row

/Usr/sbin/dmidecode | grep "Serial Number" can read the computer ID. Of course, this is only valid for machines of regular brands, such as Dell and HP, the retrieved value corresponds to the value posted on the machine. Similar to the compatible machine of the Qinghua Tongfang stream, basically no meaningful data can be read.

CAT/proc/
Cpuinfo

Or Vim/proc/
Cpuinfo

View System Information

CAT/proc/
Cpuinfo-CPU (I. e. Vendor, MHz, flags like MMX)

CAT/proc/interrupts-interrupt

CAT/proc/ioports-device IO port

CAT/proc/meminfo-memory information (I. e. mem used, free, swap size)

CAT/proc/Partitions-all partitions of all devices

CAT/proc/PCI-PCI device information

CAT/proc/SWAPs-information about all swap partitions

CAT/proc/version-linux version is equivalent to uname-R

Uname-a-view system kernel and other information

How to view the Linux system version:

CAT/etc/RedHat-release

CAT/etc/issue

CAT/proc/version

View disk space size:

DF-m

CAT/etc/issue view the operating system version

CAT/etc/inittab

CAT/proc/cpuinfo
View CPU Information

Uname-a system version

DF-H hard disk Query

CAT/etc/passwd view the list of all users

CAT/etc/group view User Group

View the current folder size in Du-SH

In Linux, dmidecode is used to view hardware information.

Dmidecode is a tool for dumping a computer ''' s DMI (some say smbios) Table contents in a human-readable format. This table contains a description
The system ''' s hardware components, as well as other useful pieces of information such as serial numbers and bios revision. thanks to this table, you can retrieve this information without having to probe for the actual hardware. while this is a good point
In terms of report speed and safeness, this also makes the presented information possibly unreliable.

Dmidecode comprehensively displays bios, CPU, memory, and other hardware information.

View the serial number of the motherboard

Dmidecode | grep "Serial Number"

Displays the number of physical memory blocks.

Dmidecode | grep-A16 "memory device $"

Display CPU Information

Dmidecode | grep-a42 "processor" | more

In addition:

Grep-an (A and N can also have spaces) to output rows containing the specified string and N rows following the row

/Usr/sbin/dmidecode | grep "Serial Number" can read the computer ID. Of course, this is only valid for machines of regular brands, such as Dell and HP, the retrieved value corresponds to the value posted on the machine. Similar to the compatible machine of the Qinghua Tongfang stream, basically no meaningful data can be read.

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.