linux hardware info command: inxi


In this tutorial we are going to review a tool to make easy to retrieve software and hardware information. The tool is called inxi and is able to retrieve current kernel, graphics card model, driver information, etc. For example if you want to know information of your hardriver using a linux command, this tool will give you hardware information and also relevant system information like disk space, block device, etc.

Step 1: Install inxi

You can install inxi from official repositories, for ubuntu install it with the command:

sudo apt-get install inxi

The tool is also available on fedora:

sudo dnf install inxi

How to retrieve hardware info with inxi

Here are a couple of inxi example with the outputs:


Example of inxi output

CPU~Single core Intel Xeon E5-2650L v3 (-MCP-) speed~1799 MHz (max) Kernel~4.14.11-200.fc26.x86_64 x86_64 Up~233 days Mem~276.3/481.0MB HDD~21.5GB(70.0% used) Procs~105 Client~Shell

You can use the parameter -F to display more inforation:

``` bash inxi -F

Example output:

``` bash
System:    Host: server.localdomain Kernel: 4.14.11-200.fc26.x86_64 x86_64 bits: 64 Console: tty 8
           Distro: Fedora release 26 (Twenty Six)
Machine:   Device: kvm System: DigitalOcean product: Droplet v: 20171212 serial: N/A
           Mobo: N/A model: N/A serial: N/A BIOS: DigitalOcean v: 20171212 date: 12/12/2017
CPU:       Single core Intel Xeon E5-2650L v3 (-MCP-) cache: 30720 KB speed: 1799 MHz (max)
Graphics:  Card: Red Hat QXL paravirtual graphic card
           Display Server: N/A driver: qxl tty size: 181x41 Advanced Data: N/A out of X
Network:   Card: Red Hat Virtio network device driver: virtio-pci
           IF: eth0 state: up speed: -1 duplex: unknown mac: 32:94:72:c9:d7:de
Drives:    HDD Total Size: 21.5GB (70.0% used)
           ID-1: /dev/vda model: N/A size: 21.5GB
           ID-2: /dev/vdb model: N/A size: 0.0GB
Partition: ID-1: / size: 20G used: 14G (75%) fs: ext4 dev: /dev/vda1
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   None detected - is lm-sensors installed and configured?
Info:      Processes: 105 Uptime: 233 days Memory: 276.5/481.0MB Init: systemd runlevel: 3
           Client: Shell (zsh) inxi: 2.3.56

Example: Retrieve network information

You can use the parameter -N to retrieve network information:

inxi -N

Output example:

Network:   Card: Red Hat Virtio network device driver: virtio-pci

How to get repository sources of Ubuntu/Fedora

You can use the option -r to retrieve repository information:

inxi -r

The output of the command is:

Repos:     Active yum sources in file: /etc/yum.repos.d/_copr_sergiomb-google-drive-ocamlfuse.repo
           sergiomb-google-drive-ocamlfuse ~$releasever-$basearch/


Usually on linux the command lshw, lsusb, lscpu,lspci and similar tools are very well known and used. To retrieve all the information you usually need several tools, with inxi you have a tool to retrieve all the information from one command. Inxi also prints the harware information in a pretty nice format.