This article mainly for you to share a how to view the hardware configuration information in Linux method, has a very good reference value, I hope to be helpful to everyone. Follow the small series together to see it.
1. View all hardware information for the machine :
Dmidecode |more
DMESG |more
it 2 There 's a lot of information coming out of a command . , so it is recommended to use later "|more" easy to see
2. view CPU Information
Method One:
LinuxunderCPUthe relevant parameters are saved in the/proc/cpuinfoin the file
Cat/proc/cpuinfo |more
Method Two:
take command DMESG | grep CPUcan see the relevantCPUthe startup information
ViewCPUthe number of digits:
getconf long_bit
3. View Mem Information
Cat/proc/meminfo |more (note the last line of the output information : machinemem:41932272 KB )
Free-m
Top
4. View disk information
Method one :
fdisk-l can see partitions and size-related information about the disks on the system , including the U - disk .
Method Two :
View directly
cat/proc/partitions
5. View network card information
method One:
Ethtool eth0Use this command to view the technical specifications related to the NIC
(This command is not necessarily supported by all network cards)
Ethtool-i eth1Plus- I.parameter view NIC driver
other parameters can be tried to see the technical parameters of the network card
Method Two:
you can also passDMESG | grep eth0wait to see the NIC name(Manufacturers)and other information
by viewing /etc/sysconfig/network-scripts/ifcfg-eth0you can see that the current network adapter configuration includesIP, gateway address, and other information.
of course, you can also passifconfigcommand to view.
6. How do I view motherboard information?
Lspci
7.How to MountISOfile
Mount-o Loop *.isomount_point
8. How to view disc-related information
method One:
InsertCDafter the CD-ROM, in myRHEL5system, the CD-ROM file is/dev/cdrom,
so justMount/dev/cdrom Mount_pointcan be.
[Root@miix tmp]# Mount/dev/cdrom Mount_point
Mount:block Device/dev/cdrom is write-protected, mountingread-only
in fact, a closer look at the CD-ROM device file ishDC
[Root@miix tmp]# ls-l/dev/cdrom*
lrwxrwxrwx 1 root root 3 01-08 08:54/dev/cdrom, HDC
lrwxrwxrwx 1 root root 3 01-08 08:54/DEV/CDROM-HDC, HDC
so we can do that, too .Mount/dev/hdcmount_point
If a valid disc is not in the optical drive, the error is:
[Root@miix tmp]# Mount/dev/hdc Mount_point
Mount:Media not found
9. How to view USB device-related
method One:
actually throughfdisk-lcommand to view the accessUdisk information, myUThe disk information is as follows:
disk/dev/sda:2012 MB, 2012217344 bytes
Heads, Sectors/track, 7676 cylinders
Units = Cylinders of * 262144 bytes
Device Boot Start End Blocks Id System
/DEV/SDA1 * 7676 1961024 b W95 FAT32
Uthe disk's device file is/DEV/SDA,2Gsize,FAT32format.
If the user is not logged inLinuxgraphical interface,UThe disk is not automatically mounted.
This can be manually mounted(Mount):
MOUNT/DEV/SDA1 Mount_point
the above command willUdisk to the current directory.Mount_pointTable of contents, attention hanging issda1is notSDA.
The uninstall command isUmountmount_point
Linuxno self-support by defaultNTFSdrive of the format disk, but toFAT32support Good, mount when the general does not need- T VfatParameters.
If supportNTFS, theNTFSthe format of the disk partition should use the- t NTFSparameters.
If there is garbled situation, you can consider using- o iocharset=Character Setparameters.
can be done byLsusbcommands to viewUSBDevice Information OH:
[Root@miix tmp]# Lsusb
Bus 001 Device 001:id 0000:0000
Bus 002 Device 001:id 0000:0000
Bus 003 Device 001:id 0000:0000
Bus 004 Device 002:id 0951:1613 Kingston Technology
Bus 004 Device 001:id 0000:0000
Related recommendations:
View hardware architecture under Linux
Commands in Linux view hardware information
How to view various hardware information in Linux