Summary of Linux Host Hardware Information Collection Commands

In the operation and maintenance process of OpenStack, Kubernetes, physical machines, or virtualization platforms, the ability to quickly collect host hardware information is of great significance for problem diagnosis. Mastering the knowledge in this article indicates that you are an experienced engineer. 🧠 1. Basic Information Identification Function Command View Product Model <span><span>cat /sys/class/dmi/id/product_name</span></span> View … Read more

C++ Memory Usage Retrieval

C++ Memory Usage Retrieval

In C++, there is no direct functionality to retrieve hardware information. However, with the implementation at the platform level, obtaining hardware information becomes easier. For example, using the Windows system’s windows.h. So how do we retrieve memory usage? You can use the following method: Memory Information Class Declaration RAMInfo.h: #pragma once namespace xm { class … Read more

Summary of Linux Server Hardware Information Queries and Daily Maintenance Commands

Summary of Linux Server Hardware Information Queries and Daily Maintenance Commands

1. Server Hardware Information Queries 1.1 CPU Information Queries Command Function Description Example <span>lscpu</span> Displays CPU architecture, number of cores, number of threads, etc. <span>lscpu</span> <span>cat /proc/cpuinfo</span> Detailed CPU information (model, cache, frequency) <span>cat /proc/cpuinfo</span> <span>lshw -C cpu</span> View detailed CPU information (vendor, number of cores, instruction set) <span>sudo lshw -C cpu</span> <span>nproc</span> View the … Read more

Comprehensive Guide to Linux System Information Commands

Comprehensive Guide to Linux System Information Commands

Those who follow me are the kindest! Only speaking for the people, using the pen to clarify the situation and measure the warmth of the world. Did you know? If you want to explore the secrets of Linux systems, here is a treasure trove of practical commands! From basic system information to hardware, disk, processes, … Read more

A Comprehensive Guide to Linux Hardware Information and Troubleshooting Commands

A Comprehensive Guide to Linux Hardware Information and Troubleshooting Commands

Today, I will share some hardware-related commands that can be used for daily operations and troubleshooting. Quick Reference Table for Hardware Commands Function Command CPU Information lscpu / cat /proc/cpuinfo Memory free -h / dmidecode -t memory Disk lsblk / fdisk -l / smartctl PCI Devices lspci USB Devices lsusb Motherboard Information dmidecode Temperature Monitoring … Read more

inxi: The Ultimate Tool for Retrieving Linux Hardware Information

inxi: The Ultimate Tool for Retrieving Linux Hardware Information

In the Linux world, there are many ways to obtain hardware information, such as <span>lscpu</span>, <span>free</span>, <span>lsblk</span>, and so on, but these commands usually focus on specific aspects. The uniqueness of <span>inxi</span> lies in its ability to integrate these scattered pieces of information. Today, we will explore this amazing tool. Installing inxi inxi can be … Read more