What can `inxi` be used for?

DK Bose

There are several questions and answers here that include the output of inxi. What can inxi be used for?

DK Bose

inxi is a package available in the Universe repository. The version of inxi in 18.04.1 is 2.3.56. It uses Gawk/Bash to examine your system to extract a variety of information that could be helpful in describing your system when seeking help.

From the man page:

inxi is a command line system information script built for console and IRC. It is also used a debugging tool for forum technical support to quickly ascertain users' system configurations and hardware. inxi shows system hardware, CPU, drivers, Xorg, Desktop, Kernel, gcc version(s), Processes, RAM usage, and a wide variety of other useful information.

The man page lists numerous inxi options but to summarize the uppercase options:

  • -A = Audio
  • -B = Battery
  • -C = CPU
  • -D = Hard Disk
  • -G = Graphics
  • -I = Information about processes, uptime, memory, inxi version
  • -M = Machine data such as device (laptop/desktop), motherboard, BIOS, etc
  • -N = Network information
  • -P = Partition information
  • -R = RAID information
  • -S = System information such as hostname, kernel, 32/64-bit, desktop environment, distro, etc
  • -W = Weather but this maybe unreliable!

And here's just a few of the lowercase ones:

  • -c0 turns off colored output and is useful for redirecting cleanly (without escape codes) to a text file
  • -c when used in inxi -t c10, as an example, would list the top ten processes in terms of CPU usage
  • -m when used in inxi -t m10, as an example, would list the top ten processes in terms of RAM usage
  • -n shows advanced network information
  • -t as illustrated above, is required to generate a numbered list of processes such as specified by -cN or -mN where N is the number of processes required
  • -r lists repository data including ppas
  • -s provides information on temperatures (mobo/cpu/gpu) and fan speeds

Privacy considerations
Since inxi output is often posted in public fora, the -z option filters out data such as MAC addresses. If the hostname (normally generated by -S), is to be hidden, -! 31 can be used.

The -x factor
The following example illustrates the use of -x, -xx, and -xxx and should be self-explanatory:

dkb@dkb-xubu:~$ 
dkb@dkb-xubu:~$ inxi -S
System:    Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 Desktop: Xfce 4.12.3
           Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sx
System:    Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sxx
System:    Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) dm: lightdm Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ inxi -Sxxx
System:    Host: dkb-xubu Kernel: 4.15.0-33-generic x86_64 bits: 64 gcc: 7.3.0
           Desktop: Xfce 4.12.3 (Gtk 2.24.31) info: xfce4-panel dm: lightdm Distro: Ubuntu 18.04.1 LTS
dkb@dkb-xubu:~$ 

Conclusion: So, what's a convenient command for someone wanting to present information concisely?

  • I'd go with inxi -Fxxxz for starters where -F is shorthand for including all uppercase options, plus -s and -n
  • For reporting on CPU/RAM, something like inxi -t cm10 may help
  • inxi -r would list your repos and ppas and their status

Footnote: a newer Perl-based version of inxi is available via:

sudo wget -O /usr/local/bin/inxi https://github.com/smxi/inxi/raw/master/inxi
sudo chmod +x /usr/local/bin/inxi

after which

sudo inxi -U will, when run for the first time, install the corresponding man pages and, on subsequent runs, will install newer versions of inxi and its man page. The changelog is very good reading for those interested in the inner workings of inxi.

Another option is to add Unit 193's personal package archive which closely tracks the github version.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

What can `inxi` be used for?

From Dev

What can JSON strings be used for?

From Dev

On what level can SPDY be used?

From Dev

What can be used to 'gzip' in Windows?

From Dev

What is OpenStack? And how can it be used?

From Dev

What can be used for Webcommunication on Android

From Dev

In what cases mongoexport can be used?

From Dev

What is a name of this port? And for what purpose can it be used?

From Dev

Accessibility: what can aria-haspopup be used for?

From Dev

what can be used for (reliably) testing Couchbase latency?

From Dev

What else can `loeb` function be used for?

From Dev

What algorithm can be used to diff image files?

From Dev

What can std::remove_extent be used for?

From Dev

What Unix commands can be used as a semaphore/lock?

From Dev

What else can php Classes be used for?

From Dev

What CMS systems can be used with static code?

From Dev

What are the useful attributes that can be used with passes in Yosys?

From Dev

What is a MOJO codec and how can it be used with ffmpeg

From Dev

Query Facebook for what version of the Graph API is being used / can be used

From Dev

What conditions can be used to derive as which for loop in java is most efficient?

From Dev

What predefined macro can be used to detect debug build with clang?

From Dev

What are the software testing techniques that can be used for memory testing in Android?

From Dev

What data type can be used to put a flag (boolean) in mysql?

From Dev

Git - Can you find what client was used to push?

From Dev

What software can be used to create a restorable drive image?

From Dev

What .NET server-side technology can be used with an AngularJS app?

From Dev

What is self hosting ? Can it be used with webapi to communicate with devices?

From Dev

PrimeFaces Extensions: What type's can be used with DynaForm Control?

From Dev

What character can be used in a SCSS/SASS function and variable name?

Related Related

  1. 1

    What can `inxi` be used for?

  2. 2

    What can JSON strings be used for?

  3. 3

    On what level can SPDY be used?

  4. 4

    What can be used to 'gzip' in Windows?

  5. 5

    What is OpenStack? And how can it be used?

  6. 6

    What can be used for Webcommunication on Android

  7. 7

    In what cases mongoexport can be used?

  8. 8

    What is a name of this port? And for what purpose can it be used?

  9. 9

    Accessibility: what can aria-haspopup be used for?

  10. 10

    what can be used for (reliably) testing Couchbase latency?

  11. 11

    What else can `loeb` function be used for?

  12. 12

    What algorithm can be used to diff image files?

  13. 13

    What can std::remove_extent be used for?

  14. 14

    What Unix commands can be used as a semaphore/lock?

  15. 15

    What else can php Classes be used for?

  16. 16

    What CMS systems can be used with static code?

  17. 17

    What are the useful attributes that can be used with passes in Yosys?

  18. 18

    What is a MOJO codec and how can it be used with ffmpeg

  19. 19

    Query Facebook for what version of the Graph API is being used / can be used

  20. 20

    What conditions can be used to derive as which for loop in java is most efficient?

  21. 21

    What predefined macro can be used to detect debug build with clang?

  22. 22

    What are the software testing techniques that can be used for memory testing in Android?

  23. 23

    What data type can be used to put a flag (boolean) in mysql?

  24. 24

    Git - Can you find what client was used to push?

  25. 25

    What software can be used to create a restorable drive image?

  26. 26

    What .NET server-side technology can be used with an AngularJS app?

  27. 27

    What is self hosting ? Can it be used with webapi to communicate with devices?

  28. 28

    PrimeFaces Extensions: What type's can be used with DynaForm Control?

  29. 29

    What character can be used in a SCSS/SASS function and variable name?

HotTag

Archive