In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to view hardware information on Linux". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to view hardware information on Linux.
One of the most common things Linux users struggle with is to see what hardware is detected by the operating system and how it works. Because the operating system will not use some hardware at all unless it can recognize it. However, there are a large number of commands outside to view hardware information.
There are a lot of graphical user interface (GUI) tools on the desktop, such as hardinfo and sysinfo, but a common command-line tool is much more practical, and this is what Inxi is good at. Inxi is a set of scripts that can detect a lot of information about the hardware, including vendor details and device driver configuration. And most importantly, it can print out all kinds of information in an easy-to-read format.
Install inxi
Inxi is in the default software library of most distributions, so you can get it quickly.
# Ubuntu/Debian user $sudo apt-get install inxi # CentOS/Fedora user $sudo yum install inxi
If inxi is not on the distribution you are using, install it by following the instructions given here.
Use inxi
Inxi comes with a large number of options to display more information about different hardware components in as much detail as possible. So in this article we will only explore a few basic aspects to get started; if you are interested, you can explore the rest.
1. Run Inxi
To get brief information about your hardware, simply run inxi as follows.
$inxi-c 5 CPU~Quad core Intel Core2 Quad CPU Q8400 (- MCP-) clocked at 1998.000 Mhz Kernel~3.11.0-12-generic x86 used 64 Up~1:43 Mem~4774.1/7975.7MB HDD~500.1GB (38.8% used) Procs~301 Client ~ Shell inxi~1.9.12
Color scheme: the output of Inxi is marked with color; if you need to change the color to be more clear at a glance, just use the c option, followed by a random number between 0 and 32.
two。 Get basic information
The b tag displays a large number of basic information about the system.
$inxi-c 5-b System: Host: enlightened Kernel: 3.11.0-12-generic x86Th64 (64 bit) Desktop: KDE 4.11.2 Distro: Ubuntu 13.10 Machine: Mobo: Intel model: DG35EC version: AAE29266-210 Bios: Intel version: ECG3510M.86A.0112.2009.0203.1136 date: 02Greater CPU: Quad core Intel Core2 Quad CPU Q8400 (- MCP-) clocked at 1998.00 MHz Graphics: Card: Intel 82G35 Express Integrated Graphics Controller X.Org : 1.14.3 drivers: intel (unloaded: fbdev Vesa) Resolution: 1360x768@60.0hz GLX Renderer: Mesa DRI Intel 965G GLX Version: 2.1 Mesa 9.2.1 Network: Card: Intel 82566DC Gigabit Network Connection driver: e1000e Drives: HDD Total Size: 500.1GB (38.8% used) Info: Processes: 304 Uptime: 1:50 Memory: 4983.3/7975.7MB Client: Shell (bash) inxi: 1.9.12
The output information about the system contains a great deal of information about processors, graphics cards, drivers, and installed operating systems. This information is very useful when you are installing drivers or diagnosing problems.
3. Print out hard drive partition information
Now you might as well print out information about the hard drive partition. It prints out all mounted partitions, mount points and disk usage information.
$inxi-p Partition: ID: / size: 97g used: 22G (24%) fs: ext4 ID: / media/13f35f59-f023-4d98-b06f-9dfaebefd6c1 size: 196G used: 132G (71%) fs: ext4 ID: / media/4668484A68483B47 size: 98G used: 28G (29%) fs: fuseblk ID: swap-1 size: 2.05GB used: 0.00GB (0%) fs: swap
To print out information about unmounted and mounted partitions, simply use the o option with p.
$inxi-p Partition: ID: / size: 97g used: 22G (24%) fs: ext4 ID: / media/13f35f59-f023-4d98-b06f-9dfaebefd6c1 size: 196G used: 132g (71%) fs: ext4 ID: / media/4668484A68483B47 size: 98G used: 28G (29%) fs: fuseblk ID: swap- 1 size: 2.05GB used: 0.00GB (0%) fs: swap enlightened@enlightened:~$ inxi-po Partition: ID: / size: 97g used: 22g (24%) fs: Ext4 ID: / media/13f35f59-f023-4d98-b06f-9dfaebefd6c1 size: 196G used: 132G (71%) fs: ext4 ID: / media/4668484A68483B47 size: 98G used: 28G (29%) fs: fuseblk ID: swap- 1 size: 2.05GB used: 0.00GB (0%) fs: swap Unmounted: ID: / dev/sda1 size: 75.16G label: NZA uuid: 5E38BE8B38BE6227
Using the D option, print out the details of the hard drive, such as brand, model, and size.
$inxi-D Drives: HDD Total Size: 500.1GB (38.8% used) 1: id: / dev/sda model: ST3500418AS size: 500.1GB
4. Details of the optical driv
Print out complete information about all drives, including all hard drives and optical drives and their specific specifications.
$inxi-d Drives: HDD Total Size: 500.1GB (38.8% used) 1: id: / dev/sda model: ST3500418AS size: 500.1GB Optical: / dev/sr0 model: a dev-links: cdrom Features: speed: 12x multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram
Access to information is so fast.
5. Network interface and configuration
The n option fully prints out details about the network interface and configuration details.
$inxi-n Network: Card: Intel 82566DC Gigabit Network Connection driver: e1000e IF: eth0 state: up speed: 100Mbps duplex: full mac: 00:1c:c0:f8:79:ee
Using the I option with n, you can get the details of the IP address (including WAN and LAN).
$inxi-ni Network: Card: Intel 82566DC Gigabit Network Connection driver: e1000e IF: eth0 state: up speed: 100Mbps duplex: full mac: 00:1c:c0:f8:79:ee WAN IP: 122.163.33.2 IF: eth0 ip: 192.168.1.2
6. Display information for audio / audio cards and graphics cards
Option A displays audio card information, while option G displays graphics card information.
$inxi-AG Graphics: Card: Intel 82G35 Express Integrated Graphics Controller X.Org: 1.14.3 drivers: intel (unloaded: fbdev,vesa) Resolution: 1360x768@60.0hz GLX Renderer: Mesa DRI Intel 965G GLX Version: 2.1 Mesa 9.2.1 Audio: Card: Intel 82801H (ICH8 Family) HD Audio Controller driver: snd_hda_intel Sound: ALSA ver: k3.11.0-12-generic
After using option b, the details of the graphics card have been included.
7. Display software library data for a specific distribution:
$inxi-r Repos: Active apt sources in file: / etc/apt/sources.list deb http://in.archive.ubuntu.com/ubuntu/ saucy main restricted deb-src http://in.archive.ubuntu.com/ubuntu/ saucy main restricted deb http://in.archive.ubuntu.com/ubuntu/ saucy-updates main restricted deb-src http://in.archive.ubuntu.com/ubuntu/ saucy-updates main restricted deb http://in.archive.ubuntu.com/ubuntu/ saucy universe Deb-src http://in.archive.ubuntu.com/ubuntu/ saucy universe deb http://in.archive.ubuntu.com/ubuntu/ saucy-updates universe deb-src http://in.archive.ubuntu.com/ubuntu/ saucy-updates universe deb http://in.archive.ubuntu.com/ubuntu/ saucy multiverse deb-src http://in.archive.ubuntu.com/ubuntu/ saucy multiverse deb http://in.archive.ubuntu.com/ubuntu/ saucy-updates multiverse deb-src http:/ / in.archive.ubuntu.com/ubuntu/ saucy-updates multiverse deb http://in.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse deb-src http://in.archive.ubuntu.com/ubuntu/ saucy-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu saucy-security main restricted deb-src http://security.ubuntu.com/ubuntu saucy-security main restricted deb http://security.ubuntu.com/ubuntu saucy-security universe deb-src http:// Security.ubuntu.com/ubuntu saucy-security universe deb http://security.ubuntu.com/ubuntu saucy-security multiverse deb-src http://security.ubuntu.com/ubuntu saucy-security multiverse deb http://extras.ubuntu.com/ubuntu saucy main deb-src http://extras.ubuntu.com/ubuntu saucy main deb http://archive.canonical.com/ saucy partner deb http://download.virtualbox.org/virtualbox/debian saucy contrib Active apt sources in file: / etc/apt/sources.list. D/google-chrome.list deb http://dl.google.com/linux/chrome/deb/ stable main
On CentOS, you get an interface like this:
# inxi-r Repos: Active yum sources in file: / etc/yum.repos.d/CentOS-Base.repo base ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os updates ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates extras ~ http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras Active yum sources in file: / etc/yum.repos.d/epel.repo epel ~ https://mirrors.fedoraproject.org/metalink?repo=epel-6& Arch=$basearch Active yum sources in file: / etc/yum.repos.d/nginx.repo nginx ~ http://nginx.org/packages/centos/$releasever/$basearch/
8. Print out all the information
The F option displays the system information in more detail than the b (basic) option. But it does not contain all the information that inxi can report.
# inxi-F System: Host: dhcppc3 Kernel: 2.6.32-358.11.1.el6.x86_64 x8634 (64 bit) Console: tty 0 Distro: CentOS release 6.4 (Final) Machine: System: innotek product: VirtualBox version: 1.2serial: 0 Mobo: Oracle model: VirtualBox version: 1.2serial: 0 Bios: innotek version: VirtualBox date: 12Unither2006 CPU: Single core Intel Core2 Quad CPU Q8400 (- UP-) cache: 6144 KB flags: ( Lm nx sse sse2 sse3 ssse3) clocked at 2653.954 MHz Graphics: Card: InnoTek Systemberatung VirtualBox Graphics Adapter X-Vendor: n driver: n tty size: 76x26 Advanced Data: n tty size A for root out of X Audio: Card: Intel 82801AA AC'97 Audio Controller driver: Intel ICH Sound: ALSA ver: 1.0.21 Network: Card: Intel 82540EM Gigabit Ethernet Controller driver: E1000 IF: eth0 state: up speed: 1000 Mbps duplex: full mac: 08:00:27:54:e4:c6 Drives: HDD Total Size: 4.3GB (32.6% used) 1: id: / dev/sda model: VBOX_HARDDISK size: 4.3GB Partition: ID: / size: 2.5G used: 1.3G (53%) fs: ext4 ID: / boot size: 485m used: 52m (12%) fs: ext4 ID: swap-1 size: 1.04GB used: 0.00GB (0%) fs: swap RAID: No RAID devices detected-/ proc/mdstat and md_mod kernel raid module present Sensors : None detected-is lm-sensors installed and configured? Info: Processes: 76 Uptime: 34 min Memory: 92.1/490.6MB Runlevel: 3 Client: Shell (bash) inxi: 1.9.14
Using the I option, you can print out the IP address information.
$inxi-Fi
9. Print out additional information
The x option can be used in conjunction with a single option to print additional or additional information about a particular hardware or configuration file.
To print out additional information about the audio system:
$inxi-A-x Audio: Card: Intel 82801H (ICH8 Family) HD Audio Controller driver: snd_hda_intel bus-ID: 00:1b.0 Sound: Advanced Linux Sound Architecture ver: k3.11.0-12-generic
For additional information about any subset of hardware profiles, simply use the x option, as shown above.
For more additional information, use the-xx option. For more additional information, use the-xxx option. After that, Inxi can't show you any more information.
Summary
Each option can print out information about a particular hardware component. Select the hardware parts you need to view, and you can also print out information about all the parts; in any case, it is very simple and fast.
At this point, I believe you have a deeper understanding of "how to view hardware information on Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.