inxi is a CLI tool that lists information about your Linux system. This includes both hardware and software details. You get simple details like which computer model you have, which kernel, distribution and desktop environment you are using etc. You also get details like which RAM slot of your motherboard is occupied by memory modules etc.
It can also be used to monitor processes that are running on your computer that are either consuming CPU resources or memory resources, or both.
In this tutorial, Iโll show some of the popular use cases of inxi to get information for your Linux system.
But first, let me quickly show you how to install inxi.
Install inxi on your Linux distribution
Inxi is a popular software that is available in the repository of most Linux distributions. Not popular enough to have it installed by default.
To install inxi on Ubuntu and Debian based distributions, use this command:
sudo apt install inxi
To install inxi on Fedora and RHEL8-based distributions, use:
sudo dnf install -y epel-release
sudo dnf install -y inxi
To install inxi on Arch Linux and itโs derivatives, look for it in the AUR:
Using inxi to get Linux system details
You can get an overview of your system information by simply running the inxi command in your terminal.
inxi
As you can see in the image below, it gives a brief overview of CPU information, clockspeed, Kernel, RAM (displayed with Mem) and storage information along with number of running processes and shell version details.
You can also use the โ-bโ flag to show a more detailed overview of your system information. It will show more information regarding your CPU, drives, currently running processes, motherboard UEFI version, GPU, display resolution, network devices etc
inxi -b
As you might have noticed by the use of the โ-bโ flag, inxi, just like any command line utility, it has a lot of flags that influence the output of inxi once executed. You can use these flags or combine them to get only certain detailed information.
Let me show a few example.
Get details of audio devices
Using the โ-Aโ flag will present you with information about your audio [output] devices. That will display the physical audio [output] devices, sound server and the audio driver details.
inxi -A
Get battery information
The โ-Bโ flag will show details about your battery (if there is a battery present). You will get details like the current battery charge in Wh (Watt hours) and the condition.
Since I use a desktop, here is a sample output of what the output would look like if the โ-Bโ flag was used with inxi with a battery attached
Battery: ID-1: BAT0 charge: 50.0 Wh (100.0%) condition: 50.0/50.0
Get detailed CPU information
The -C flag shows detailed CPU information. That includes your CPU cache size, speed in MHz (of each core, if there are multiple cores), number of cores, CPU model and also if your CPU is 32-bit or 64-bit.
inxi -C
Make note, if you run inxi -C in a virtual machine, detecting your CPUโs minimum and maximum CPU frequency can be quite tricky for inxi. Below is a sample output of using the โ-Cโ flag with inxi in a quad core Debian 11 Virtual Machine.
Get even more detailed system information
The โ-Fโ flag will show detailed system information (like the โ-bโ flag, but even more in depth). It includes almost everything to get a high level overview of the system that you are dealing with.
inxi -F
Get graphics related information
The โ-Gโ flag displays the data about everything related to Graphics.
It shows you all your Graphics Devices (GPUs), the [GPU] driver that is being used (helpful to check if you are using the Nvidia driver or the nouveau driver), display output resolution and driver version.
inxi -G
Get running process info
The โ-Iโ (upper case i) shows detailed information about running processes, your current shell, memory (and memory usage) and inxi version.
Get RAM information
As you might have guessed, the -m flag shows you memory (RAM) related information.
It provides information such as total available memory, maximum capacity of memory supported [by your hardware platform or by your CPU manufacturer], number of physical memory slots available on the motherboard, if ECC is present or not, the memory slots that are populated and also what is the size of each module along with the speed that said module is running at, per enumerated slot(s).
inxi -m
To take advantage of the in-depth details provided by the โ-mโ flag, like the maximum capacity, RAM module details that is at each slot, you need super-user privileges.
sudo inxi -m
If you just want the output to be short and not in this in-depth, you can use the โโmemory-shortโ flag with inxi.
Using the โโmemory-shortโ flag will only show total memory that is available and how much of it is currently in use.
See which package repository is in use
When you use the โ-rโ flag with inxi, it will present you with a list of all the repositories that your package manager is currently using or updating local repository cache with.
Get RAID devices details
The โ-Rโ flag shows you information about all the RAID devices.
Surprisingly, it even shows information about ZFS RAID (because this file system is not included in many Linux distributions by default). It shows details about the file system on the RAID device, status โ if it is online or offline, total size and available size.
inxi -R
Check weather information in Linux terminal (yes, thatโs possible too)
And, as a bonus, you can even check the weather of any place on Earth with the โ-Wโ flag.
The โ-Wโ flag needs to be followed by either one of the following location descriptors
- Postal code or zip code
- Latitude,longitude
- City[,state],country (must not contain spaces; replace spaces with the โ+โ sign)
inxi -W Baroda,India
Monitoring the usage of system resource(s) with inxi
Along with all the verbose information that inxi provides about your installed hardware and the software that drives it, it can also be used for resource monitoring purposes.
Use the โ-tโ flag to show processes. You can also use the non-mandatory options โcโ (for CPU) and โmโ (for RAM). These options can also be combined with a numerical value that lists desired amount of processes.
Below are a few examples of using the โ-tโ flag to monitor system resources.
inxi -t
If you run inxi with โ-tโ flag but without the non-mandatory options, it will output assuming that you typed added the โcm5โ options.
inxi -t cm10
Thatโs fine for rare use but there are dedicated system resource monitoring tools that are easier to use and have more functionalities.
In the endโฆ
For the individuals who have to diagnose issues with computers and itโs system information that they are not aware about, inxi can be incredibly helpful. It shows the processes that are consuming CPU, memory; you can check if the correct graphics drivers are being used, if the motherboard UEFI/BIOS is up to date, and much more.
In fact, on Itโs FOSS Community forum, we ask members to share the output of inxi command while seeking help so that it is easier to see what kind of system is in use.
I know there are other tools that provide hardware info on Linux but inxi combines both hardware and software details and thatโs why I like it.
Do you use inxi or some other tool? Share your experience in the comments please.