How to check system hardware manufacturer, model and serial number in Linux
by Vinoth Kumar · Last Updated: December 23, 2019
Getting system hardware information is not a problem for Linux GUI and Windows users but CLI users facing trouble to get this details.Even most of us don’t know what is the best command to get this. There are many utilities available in Linux to get system hardware information such as
System Hardware Manufacturer, Model And Serial Number.
We are trying to write possible ways to get this details but you can choose the best method for you.
It is mandatory to know all these information because it will be needed when you raise a case with hardware vendor for any kind of hardware issues.
This can be achieved in six methods, let’s see one by one.
Method-1 : Using Dmidecode Command
Dmidecode is a tool which reads a computer’s DMI (stands for Desktop Management Interface) (some say SMBIOS – stands for System Management BIOS) table contents and display system hardware information in a human-readable format.
This table contains a description of the system’s hardware components, as well as other useful information such as serial number, Manufacturer information, Release Date, and BIOS revision, etc.
The DMI table not only describe what the system is currently made of, it also can report the possible evolution (such as the fastest supported CPU or the maximal amount of memory supported).
This will help you to analyze your hardware capability like whether it’s support latest application version or not?
Method-2 : Using inxi Command
inxi is a nifty tool to check hardware information on Linux and offers wide range of option to get all the hardware information on Linux system that i never found in any other utility which are available in Linux. It was forked from the ancient and mindbendingly perverse yet ingenius infobash, by locsmif.
inxi is a script that quickly shows system hardware, CPU, drivers, Xorg, Desktop, Kernel, GCC version(s), Processes, RAM usage, and a wide variety of other useful information, also used for forum technical support & debugging tool.
Method-3 : Using lshw Command
lshw (stands for Hardware Lister) is a small nifty tool that generates detailed reports about various hardware components on the machine such as memory configuration, firmware version, mainboard configuration, CPU version and speed, cache configuration, usb, network card, graphics cards, multimedia, printers, bus speed, etc.
It’s generating hardware information by reading varies files under /proc directory and DMI table.
lshw must be run as super user to detect the maximum amount of information or it will only report partial information. Special option is available in lshw called class which will shows specific given hardware information in detailed manner.
Method-4 : Using /sys file system
The kernel expose some DMI information in the /sys virtual filesystem. So we can easily get the machine type by running grep command with following format.
Alternatively we can print only specific details by using cat command.
Method-5 : Using dmesg Command
The dmesg command is used to write the kernel messages (boot-time messages) in Linux before syslogd or klogd start. It obtains its data by reading the kernel ring buffer. dmesg can be very useful when troubleshooting or just trying to obtain information about the hardware on a system.
Method-6 : Using hwinfo Command
hwinfo stands for hardware information tool is another great utility that used to probe for the hardware present in the system and display detailed information about varies hardware components in human readable format.
It reports information about CPU, RAM, keyboard, mouse, graphics card, sound, storage, network interface, disk, partition, bios, and bridge, etc. This tool could display more detailed information among others like lshw, dmidecode, inxi, etc,.
[Step-by-Step] How to get serial number in Linux (Ubuntu) by Command?
For Windows: If you are using Windows, you can check serial number and all other hardware related information in system property using User Interface. You can also get system info using system information command in windows.
For Linux: If you are using any of the Linux systems, you have to run the command to the system details like serial number, manufacturing model… You can do this easily by the dmidecode command in the command line terminal.
What is the dmidecode command?
It is a command to read DMI table. The name itself depicts as it is a command to decode the value in DMI table.
What is DMI Table in Linux?
DMI table is also called as SMBIO. This table consists of all the hardware, processor, system, BIOS information, etc.
Role of dmidecode Command:
A dmidecode command just fetches the content from this table and display it in the human-readable format on the terminal.
If it is not working, it requires root permission. Try getting admin privilege by running following sudo command.
It will give a long list of information. To shorten it or to get the particular information you have to be specific.
How to check the Manufacturer, Model, and Serial Number?
Run the following command.
This command will give complete information about the system.
How to get serial number in Linux?
If you want to get a serial number of the system in any Linux system like Ubuntu, run following command in terminal.
This will highlight the serial number of the hardware.
You can also use the dmidecode to read any specific hardware/system parameter by specifying the parameter name.
Note: Kindly make a note. While running any of the dmidecode commands, try all these commands running without sudo first. If you get any error or system ask you for any privilege, use the commands with sudo.
I have tested and verified all these commands on Ubuntu Linux machine. If you are using any other Linux OS system, kindly check, How to get serial number in Linux using the same commands. Do share your result. It will be helpful for other candidates.
Как проверить производителя аппаратного оборудования, модель и серийный номер в Linux
Получение информации о системном оборудовании не является проблемой для пользователей Linux GUI и Windows, но пользователи CLI сталкиваются с проблемами, чтобы получить эту информацию.
Даже большинство из нас не знают, что является лучшей командой, чтобы получить это. В Linux есть много утилит для получения информации о системном оборудовании, например
Производитель аппаратного оборудования, модель и серийный номер.
Мы пытаемся написать возможные способы получения этих данных, но вы можете выбрать лучший метод для вас.
Обязательно знать всю эту информацию, потому что она понадобится, когда вы поднимете дело с поставщиком аппаратного обеспечения для любых проблем с оборудованием.
Это может быть достигнуто с помощью шести методов, позвольте мне показать вам, как это сделать.
Метод-1: Использование команды Dmidecode
Dmidecode — это инструмент, который считывает DMI компьютера (означает интерфейс управления рабочим столом) (некоторые говорят, что содержимое таблиц SMBIOS — System Management BIOS) и аппаратная информация для системы отображения в формате, удобном для человека.
В этой таблице содержится описание аппаратных компонентов системы, а также другая полезная информация, такая как серийный номер, информация о производителе, дата выпуска и ревизия BIOS и т.д..
В таблице DMI описывается не только то, что в настоящее время используется системой, но также можно сообщить о возможной эволюции (например, самый быстрый поддерживаемый процессор или максимальный объем поддерживаемой памяти).
Это поможет вам проанализировать возможности вашего оборудования, будь то поддержка последней версии приложения или нет?
Метод-2: Использование команды inxi
Inxi — отличный инструмент для проверки информации об оборудовании в Linux и предлагает широкий спектр возможностей для получения всей информации об оборудовании в системе Linux, которую я никогда не нашел в любой другой утилите, доступной в Linux.
Он был раздвоен из древнего и разумно извращенного
Inxi — это скрипт, который быстро показывает аппаратное обеспечение системы, процессор, драйверы, Xorg, Desktop, Kernel, GCC версии, процессы, использование ОЗУ и множество других полезных сведений, также используемых для технической поддержки и отладки
Метод-3: Использование команды lshw
lshw (означает Hardware Lister) — это небольшой отличный инструмент, который генерирует подробные отчеты о различных аппаратных компонентах на машине, таких как конфигурация памяти, версия прошивки, конфигурация материнской платы, версия и скорость процессора, конфигурация кеша, USB, сетевая карта, мультимедиа, принтеры, скорость шины и т. д.
Он генерирует информацию об оборудовании, читая различные файлы в каталоге / proc и таблице DMI.
lshw должен быть запущен от суперпользователя, чтобы определить максимальный объем информации или он будет сообщать только частичную информацию.
Специальная опция доступна в классе lshw, который будет подробно описывать конкретную информацию об оборудовании.
Способ-4: Использование / sys файловой системы
Ядро выставляет некоторую информацию DMI в виртуальной файловой системе / sys.
Таким образом, мы можем легко получить тип машины, выполнив команду grep со следующим форматом.
В качестве альтернативы мы можем вывести только определенные детали, используя команду cat.
Метод-5: Использование команды dmesg
Команда dmesg используется для записи сообщений ядра (загрузочных сообщений) в Linux до запуска syslogd или klogd.
Он получает свои данные, читая кольцевой буфер ядра. dmesg может быть очень полезен при устранении неполадок или просто пытается получить информацию об оборудовании в системе.
Метод-6: Использование команды hwinfo
hwinfo означает аппаратный информационный инструмент — еще одна полезная утилита, которая используется для проверки оборудования, присутствующего в системе, и отображения подробной информации о различных аппаратных компонентах в человекообразном формате.
Он сообщает информацию о процессоре, ОЗУ, клавиатуре, мыши, графической карте, звуке, памяти, сетевом интерфейсе, диске, разделе, биографии и мосту и т.д. Этот инструмент может отображать более подробную информацию среди других, таких как lshw, dmidecode, inxi , так далее,.