inxi is a CLI tool that lists information about your Linux system. This includes both hardware and software details. You get simple details like what computer model you own, kernel, distribution and the desktop environment you use, etc. You also get details like your motherboard RAM slot occupied by memory modules etc.
It can also be used to monitor the processes running on your computer that are consuming CPU resources or memory resources, or both.
In this tutorial, I’ll show some of the most common use cases of Inxi to get information about your Linux system.
But first, let me quickly show you how to install inxi.
Install inxi on your Linux distribution
Inxi is popular software 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 distributions based on Fedora and RHEL8, use:
sudo dnf install -y epel-release sudo dnf install -y inxi
To install inxi on Arch Linux and its derivatives, search for it in the AUR:
Use inxi to get Linux system details
You can get an overview of your system information by simply running the inxi command in your terminal.
As you can see in the image below, it gives a brief overview of information about CPU, clock speed, kernel, RAM (displayed with Mem) and storage information as well as the number of current process and shell version details.
You can also use the “-b” flag to display a more detailed overview of your system information. It will show more information regarding your CPU, drives, running processes, motherboard UEFI version, GPU, display resolution, network devices, etc.
As you may have noticed when using the “-b” flag, inxi, like any command line utility, has many flags that influence the output of inxi when executed. You can use these indicators or combine them to get only certain detailed information.
Let me show a few examples.
Get details about audio devices
Using the “-A” flag will present you with information about your audio [output] devices. This will display the physical audio [output] devices, sound server, and audio driver details.
Get battery information
The “-B” flag will display your battery details (if there is a battery present). You will get details like current battery charge in Wh (watt hours) and status.
Since I am using a desktop computer, here is an example 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 processor information
The -C flag displays detailed information about the processor. This includes your processor cache size, speed in MHz (of each core, if there are multiple cores), number of cores, processor model and also whether your processor is 32-bit or 64-bit.
Note that if you are running inxi -C in a virtual machine, detecting the minimum and maximum frequency of your CPU can be quite tricky for inxi. Below is an example 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 display 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 you are dealing with.
Obtain information about charts
The “-G” flag displays data on everything related to graphics.
It shows you all your graphics devices (GPUs), [GPU] driver used (useful to check if you are using the Nvidia driver or the new driver), display the output resolution and the version of the driver.
Obtain information about the current process
The “-I” (uppercase i) displays detailed information about running processes, your current shell, memory (and memory usage), and the inxi version.
Get RAM Info
As you may have guessed, the -m flag displays memory (RAM) information.
It provides information such as total memory available, maximum memory capacity supported [by your hardware platform or by your CPU manufacturer], number of physical memory slots available on the motherboard, whether ECC is present or not, which memory slots are populated and also what is the size of each module as well as the speed at which said module operates, per slot ( enumerated (s).
To take advantage of the detailed details provided by the “-m” flag, such as maximum capacity, RAM module details that are in each slot, you need superuser privileges.
sudo inxi -m
If you just want the output to be short and not as deep, you can use the “-memory-short” flag with inxi.
Using the “–memory-short” flag will only show the total memory available and the amount currently in use.
See which package repository is used
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 the local repository cache with.
Get details about RAID devices
The “-R” flag shows you information about all RAID devices.
Surprisingly, it even displays information about ZFS RAID (as this file system is not included by default in many Linux distributions). It displays details about the file system on the RAID device, status – whether it is online or offline, total size and available size.
Check the weather information in the Linux terminal (yes, that is also possible)
And, as an added bonus, you can even check the weather forecast for any location on Earth with the “-W” flag.
The “-W” flag must be followed by one of the following location descriptors
- Postal code or postal code
- Longitude latitude
- City[,state], country (must not contain spaces; replace spaces with a “+” sign)
inxi -W Baroda,India
Monitoring system resource usage with inxi
In addition to all the detailed 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 display the processes. You can also use the optional “c” (for processor) and “m” (for RAM) options. These options can also be combined with a numeric value that lists the number of processes desired.
Below are some examples of using the “-t” flag to monitor system resources.
If you run inxi with the “-t” flag but without the optional options, it will exit assuming you typed in the “cm5” options.
inxi -t cm10
It’s fine for infrequent use, but there are dedicated system resource monitoring tools that are easier to use and have more functionality.
At the end…
For people who need to diagnose problems with computers and system information they are not aware of, inxi can be incredibly helpful. It shows the processes that consume the processor, memory; you can check if the correct graphics drivers are being used, if the UEFI / BIOS motherboard is up to date, and much more.
In fact, on the It’s FOSS Community forum, we are asking members to share the result of the inxi command while looking for help so that it is easier to see what type of system is in use.
I know there are other tools that provide hardware information on Linux, but inxi combines both hardware and software details and that’s why I love it.
Are you using inxi or some other tool? Share your experience in the comments please.