Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to get the system and hardware information of Linux

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly explains "how to obtain the system and hardware information of Linux". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to obtain the system and hardware information of Linux".

We have shown a number of different applications and methods to obtain Linux system and hardware information. In this series, we will see how to use inxi to get these details. In the technical support of the forum, it can be used as a debugging tool to quickly determine the user's system configuration and hardware information.

Inxi is a command-line tool that can get complete system and hardware details, including:

Hardware

CPU

disc drive

Xorg

Desktop environment

Kernel

GCC version

Process

Memory footprint

And other useful information.

Installation method

Inxi is in the default software repository of most modern GNU/Linux operating systems. So, we can simply run the following command to install.

In Debian-based distributions:

Sudo apt-get install inxi

In Fedora:

Sudo yum install inxi

In RHEL-based distributions:

Install the EPEL software repository:

Sudo yum install epel-release

Then install inxi using the following command:

Sudo yum install inxi

Usage

Run the following command on the terminal to get the overview information of the system.

Inxi

Sample output:

CPU~Dual core Intel Core i3-2350M CPU (- HT-MCP-) clocked at Min:800.000Mhz Max:1200.000Mhz Kernel~3.13.0-45-generic x86 used 64 Up~6:41 Mem~1537.7/3861.3MB HDD~500.1GB (52.5% used) Procs~183 Client~Shell inxi~1.9.17

Of course, we can get the details of a particular hardware. For example, to obtain the details of sound / audio hardware, you can run the following command:

Inxi-A

Sample output:

Audio: Card: Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel Sound: Advanced Linux Sound Architecture ver: K3.13.0-45-generic

Pretty cool, huh?

Similarly, you can get the details of the graphics card.

Inxi-G

Sample output:

Graphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller X.Org: 1.15.1 drivers: intel (unloaded: fbdev,vesa) Resolution: 1366x768@60.0hz GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 10.3.0

What about the hard drive information? It's okay, too. Run the following command to get the complete hard disk information.

Inxi-D

Sample output:

Drives: HDD Total Size: 500.1GB (52.5% used) 1: id: / dev/sda model: ST9601325BD size: 500.1GB

Display Bios and motherboard details:

Inxi-M

Sample output:

Machine: System: Dell (portable) product: Inspiron N5050 Mobo: Dell model: 01HXXJ version: A05 Bios: Dell version: A05 date

Not only is it hard details, it can also display a list of available software repositories in our system.

Inxi-r

Sample output:

Repos: Active apt sources in file: / etc/apt/sources.list deb http://ubuntu.excellmedia.net/archive/ trusty main restricted deb-src http://ubuntu.excellmedia.net/archive/ trusty main restricted deb http://ubuntu.excellmedia.net/archive/ trusty-updates main restricted deb-src http://ubuntu.excellmedia.net/archive/ trusty-updates main restricted deb http:/ / ubuntu.excellmedia.net/archive/ trusty universe. . Active apt sources in file: / etc/apt/sources.list.d/intellinuxgraphics.list deb https://download.01.org/gfx/ubuntu/14.04/main trusty main # Intel Graphics drivers Active apt sources in file: / etc/apt/sources.list.d/linrunner-tlp-trusty.list Active apt sources in file: / etc/apt/sources.list.d/wseverin-ppa-trusty.list deb http: / / ppa.launchpad.net/wseverin/ppa/ubuntu trusty main

Inxi can also display the weather information of your location. Are you surprised? Yes, it can.

Inxi-W Erode,Tamilnadu

Here Erode is a region and Tamilnadu is a state of India.

Sample output:

Weather: Conditions: 79 F (26 C)-Clear Time: February 4, 6:00 PM IST

View complete hardware details

Tired of getting information about each type of hardware one by one? You can use the following command to list all the information at once:

Inxi-F

Sample output:

System: Host: sk Kernel: 3.13.0-45-generic x8634 (64 bit) Desktop: LXDE (Openbox 3.5.2) Distro: Ubuntu 14.04 trustyMachine: System: Dell (portable) product: Inspiron N5050 Mobo: Dell model: 01HXXJ version: A05 Bios: Dell version: A05 date: 08/03/2012CPU: Dual core Intel Core i3-2350M CPU (- HT-MCP-) cache: 3072 KB flags: (lm nx sse sse2 sse3 sse4_1 sse4_2) Ssse3 vmx) Clock Speeds: 1: 800.00 MHz 2: 1000.00 MHz 3: 800.00 MHz 4: 800.00 MHzGraphics: Card: Intel 2nd Generation Core Processor Family Integrated Graphics Controller X.Org: 1.15.1 drivers: intel (unloaded: fbdev Vesa) Resolution: 1366x768@60.0hz GLX Renderer: Mesa DRI Intel Sandybridge Mobile GLX Version: 3.0 Mesa 10.3.0Audio: Card: Intel 6 Series/C200 Series Family High Definition Audio Controller driver: snd_hda_intel Sound: Advanced Linux Sound Architecture ver: K3.13.0-45-genericNetwork: Card-1: Qualcomm Atheros AR9285 Wireless Network Adapter (PCI-Express) driver: ath9k IF: wlan0 state: up mac: Card- 2: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller driver: R8169 IF: eth0 state: down mac: HDD Total Size: 500.1GB (52.5% used) 1: id: / dev/sda model: ST9500325AS size: 500.1GB Partition: ID: / size: 455g used: 245g fs: ext4 ID: / boot size: 236m used: 159m (72%) fs: ext2 ID: swap-1 size: 4.19GB used: 0.00GB ( 0) fs: swap RAID: No RAID devices detected-/ proc/mdstat and md_mod kernel raid module presentSensors: System Temperatures: cpu: 64.5C mobo: n Fan Speeds (in rpm): cpu: n Uptime An Info: Processes: 186 Uptime: 6:52 Memory: 1547.2/3861.3MB Client: Shell (bash) inxi: 1.9.17

As you can see above, inxi shows the full hardware details.

You can refer to the man manual for more details.

Man inxi thank you for your reading, the above is the content of "how to obtain the system and hardware information of Linux". After the study of this article, I believe you have a deeper understanding of how to obtain the system and hardware information of Linux. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report