Tagged articles
2 articles
Page 1 of 1
Open Source Linux
Open Source Linux
Jan 2, 2025 · Backend Development

Unlock Fast C Utilities: Struct Sizes, CPU Temp, File Size, IP & More

This article presents a collection of handy C code snippets that demonstrate how to quickly obtain struct member sizes and offsets, read CPU temperature, determine file sizes, fetch system timestamps, retrieve MAC and IP addresses, perform file I/O, display progress bars, format log output, and enable core dump generation, each accompanied by sample usage and expected results.

CCPU temperatureSystem Programming
0 likes · 15 min read
Unlock Fast C Utilities: Struct Sizes, CPU Temp, File Size, IP & More
Liangxu Linux
Liangxu Linux
Mar 16, 2020 · Operations

How to Monitor CPU and GPU Temperatures on Ubuntu with Sensors, Glances, and i7z

This guide explains how to install and use three command‑line tools—lm‑sensors, Glances, and i7z—on Ubuntu to monitor CPU and GPU temperatures, fan speeds, and other hardware metrics, providing step‑by‑step commands and example outputs for effective laptop cooling diagnostics.

CPU temperatureGPU monitoringGlances
0 likes · 6 min read
How to Monitor CPU and GPU Temperatures on Ubuntu with Sensors, Glances, and i7z