How to Get Hardware and Temperature Information from Terminal
As a Linux user, it’s important to have an understanding of the hardware components of your system and their temperature. This knowledge can help you troubleshoot issues and also ensure that your system is not overheating. In this blog post, we will explore how to obtain hardware and temperature information from the Linux command line.
dmidecode -t 1 # Check server information dmidecode | grep 'Product Name' # Check server model dmidecode |grep 'Serial Number' # Check the serial number of the motherboard dmidecode -t 2 # Check motherboard information dmidecode -s system-serial-number # Check system serial number dmidecode -t memory # Check memory information dmidecode -t 11 # Check OEM information dmidecode -t 17 # Check the number of memory sticks dmidecode -t 16 # Query memory information dmidecode -t 4 # Check CPU information cat /proc/scsi/scsi # View server hard drive information
sudo ipmitool sdr list
lshw command is a powerful tool to gather detailed information about your hardware components. To install
lshw, open your terminal and type the following command:
sudo apt-get install lshw
Once installed, you can run the following command to obtain hardware information:
This command will display a detailed list of all hardware components of your system, including CPU, memory, disk, and network interfaces.
Small world. Big idea!
- Welcome to visit the knowledge base of SRE and DevOps!
- License under CC BY-NC 4.0
- No personal information is collected
- Made with Material for MkDocs and generative AI tools
- Copyright issue feedback me#imzye.com, replace # with @
- Get latest SRE news and discuss on Discord Channel