How to Use Inxi Command in Linux

2

This article will quilt a information on the use of the “inxi” command line software in Linux. It is a loose and open supply gadget data device that can be utilized to spot and display details about quite a lot of {hardware} parts provide to your Linux PC. Inxi works on all main Linux distributions and it may be particularly useful in resolving {hardware} problems and optimizing efficiency of packages that focus on explicit units of {hardware} necessities.

Main Features of Inxi

Some of an important and helpful function of inxi are:

  • Ability to percentage gadget data in IRC chat rooms.
  • Ability to supply selective gadget data for explicit classes best. For example, you’ll best display details about audio {hardware}, onerous power gadgets, and so forth.
  • Ability to supply coloured output in terminal for higher clarity.
  • Ability to supply detailed data or summarised data.
  • Supports appearing details about distribution explicit bundle repositories.
  • Supports appearing details about RAID drives.
  • It can display {hardware} temperature, fan velocity and different such data by way of probing quite a lot of sensors provide to your Linux instrument.
  • You can regulate verbosity of the produced output the use of a command line transfer.
  • Ability to turn actual time climate data as stdout.
  • Ability to cover delicate and personal data the use of a command line possibility. For example, you’ll substitute IP data by way of the use of the “–filter” command line transfer to cover the actual IP deal with.
  • Supports generating extremely detailed gadget data and detailed kernel data particularly helpful for sysadmins.
  • It can produce and save output in several dossier codecs like JSON and XML.
  • Ability to turn details about hooked up USB drives.

Installing Inxi in Linux

To set up inxi in Ubuntu, use the command specified under:

Inxi is to be had within the repository of all main Linux distributions, so you’ll set up it from the bundle supervisor. Further set up directions are to be had on its professional website online.

Fetching System Information the use of Inxi

You can produce minimum gadget data the use of inxi by way of operating the next command:

Depending at the {hardware} and instrument parts to be had to your Linux gadget, it must produce some output very similar to this:

Inxi produces coloured output by way of default. You can trade the output colour scheme by way of supplying a host between 0 and 42 to the “-c” transfer. For example, colour scheme # 4 produces output in following colour theme:

You will have spotted that the inxi command’s default implementation produces just a elementary set of {hardware} data. To produce detailed data, you’ll have to use the “–full” command line transfer.

Depending at the {hardware} configuration of your Linux gadget, this command must produce class separated output very similar to this:

The “–full” transfer presentations numerous {hardware} data. However, it nonetheless omits some complicated data appropriate for sysadmins and a few output categorised underneath verbose class. You can know extra about those complicated choices by way of testing “–verbose” and “–admin” switches to be had in inxi guy web page.

Inxi won’t be capable to probe positive {hardware} parts to your Linux gadget until you run it with root get entry to. When you run inxi command with out root get entry to, positive fields could also be tagged with “” message.

In any such case, run inxi command with sudo, as proven within the command under:

You can produce details about some explicit classes best the use of inxi. To achieve this, run a command within the following layout:

The above command makes use of “-C” and “-G” switches for generating details about CPU and GPU gadgets respectively. You can know extra about all class explicit switches from its guy web page. After operating the above command, you must get some output very similar to this:

You can mix more than one command line switches into one. The command under produces the similar output as above:

To censor delicate data, use “–filter” transfer, as proven within the command under:

Sensitive data like serial numbers and IP addresses can be tagged with “” string and unique knowledge won’t ever be proven within the output, as proven within the screenshot under:

This covers the most typical use circumstances for the inxi command. To know extra about its complicated choices, use those instructions in a terminal:

Saving Hardware Information to a File

To save produced output to a textual content dossier, run a command within the following layout:

You can substitute “info.txt” with another dossier title. Output produced by way of inxi can be stored to this newsletter dossier. To export inxi knowledge to json and xml recordsdata, run the next two instructions:

$ inxi -full –output json –output-file “$HOME/info.json”
$ inxi -full –output xml –output-file “$HOME/info.xml”

You can substitute the whole trail for the output dossier along with your desired price. Note that during some Linux distributions, inxi might throw an error about lacking libraries when producing output in JSON or XML layout. To know extra about what libraries are lacking, run the next command:

Just move during the output and set up required programs for lacking libraries from the bundle supervisor of your Linux distribution.

Conclusion

Inxi is an invaluable command line device that can be utilized to create well labeled and systematic {hardware} details about your Linux PC. You can percentage this data in quite a lot of dossier codecs, most commonly appropriate for debugging instrument and {hardware} similar problems.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More