[HowTo] Find system information

Difficulty: ★☆☆☆☆

Rather than providing the commercial reference of a computer or piece of hardware, it is usually better to directly ask the system to describe itself. On top of saving time to everyone, this also often provides more details, including something specific to the running system.

Below is a (not exhaustive) list of commands for retrieving system information.
:star: If you don’t know how to use those commands, or how to provide them to support, see: [HowTo] Use the terminal / TTY
:star: If you can’t access your system like usual, see: [HowTo] Reach a minimal system
:warning: Remember to use formatting when providing the result in the forum!

Global information

:star2: This is the main source of information to provide for support.

inxi -zv8

Specific information

The commands below provide detailed information for specific cases.

CPU

LANG=C lscpu

Drivers

mhwd -li

Kernels

mhwd-kernel -li

Manjaro Version

lsb_release -sirc

Package content

pacman -Ql <package_name>

Package owner

pacman -Qo <file_path_or_software_command>

Partitioning

lsblk -fa
LANG=C sudo parted -l

PCI Devices

lspci -k

RAM

free -h

Software locations

echo $PATH
which <software_command>

Sound Devices

aplay -L

Storage usage

LANG=C df -h

System Monitoring

htop
18 Likes

I added some more.

2 Likes

Thanks.
I’d rather keep commands about logs outside though, since those are more relevant to finding errors than the system itself.

1 Like

Specific information about the CPU:

lscpu

Also: Under “Software locations” you might want to add something like:

which echo # or whatever other app or tool you want to find in stead of echo
2 Likes

Please add lspci -k - to list all PIC kernel modules. This is what provided me with information for a realtek WiFi, in order to find the driver for it.

2 Likes

Thanks for that great collection! Do you think some input device info like xinput list or libinput list-devices could enrich it?

1 Like
df -h

Check avail. partition size.

2 Likes

btrfs device usage and btrfs device stats (unallocated space and errors).

1 Like

neofetch also provides basic information

Which is rarely useful beyond theme, desktop, kernel, and C/GPU?.. which it may not even get right … so entirely inferior, and frustrating when people try to use it as if it is somehow a replacement for a more serious tool like inxi.
Please dont open a troubleshooting thread and include neofetch.

1 Like

Too basic, most likely. Try not to suggest that.
This is much more detailed:

sudo inxi -v7azy

along with other variations of the command. There’s a guide for it somewhere.

Hmm, I didn’t notice the date of the last post, at first. Maybe I’m typing to ghosts.

1 Like

This is every more detailed:

sudo inxi -v8azy

:wink:

2 Likes

Just a heads up from inxi creator here

We should be using

inxi -zv8

which will give the same detailed information and is shorter to type as the other options are redundant inxi options.

7 Likes

Another two commands that may e.g. help to find out which ports are USB 3, which are USB 2, and available bandwidths:

lsusb
lsusb -t

To find out which device name the USB storage got that was just attached, you may look up the console messages log right after attaching it to USB:

sudo dmesg
sudo dmesg | grep -ie "usb\|sd"
sudo dmesg | grep sd | tail

And this shows where actually the swap is (if any) and how much of it is in use:

swapon
2 Likes

Add -v to get more details, including usb device:vendor IDs.

I was likely too… 7azy… to increment.