All tags
hardware
Narrow down
Shell22
- Tip
ioreg -rn AppleSmartBattery | grep CycleCountioreg prints your MacBook battery cycle count in the terminalPrints the battery cycle count of a MacBook straight from the terminal.3 Dec 2026 - Tip
sudo nvme smart-log /dev/nvme0Nvme smart-log shows how worn out your NVMe drive isReads wear, temperature and error counters straight from an NVMe drive.3 Dec 2026 - Tip
sudo hdparm -I /dev/sdaHdparm -I reads the identify data straight from a driveAsks the drive itself for detailed identification and feature data, not the kernel's boot-time copy.2 Dec 2026 - Tip
sudo dmidecode -s bios-versionDmidecode -s prints one hardware value, like the BIOS versionPrints a single DMI string such as BIOS version or product name, handy in scripts.2 Dec 2026 - Tip
sudo lshw -shortLshw -short gives a one page overview of the hardware inside a PCList the machine's parts with their device names in one table.1 Dec 2026 - Tip
sudo smartctl -l devstat /dev/sdaSmartctl -l devstat prints standard smart statistics with readable namesShows device statistics with plain descriptions instead of vendor attribute numbers.1 Dec 2026 - Tip
sudo smartctl -l scttemphist /dev/sdaSmartctl -l scttemphist shows the smart temperature history a drive keepsReads the temperature graph the drive recorded itself, even without monitoring software.1 Dec 2026 - Tip
sudo smartctl -l sataphy /dev/sdaSmartctl -l sataphy counts smart link errors between drive and controllerHelps separate a bad cable or port from a bad disk.1 Dec 2026 - Tip
journalctl -F _KERNEL_SUBSYSTEMjournalctl _KERNEL_SUBSYSTEM=usb shows what the kernel said about USB devicesFilter kernel and udev messages to one kind of hardware, like USB or PCI.30 Nov 2026 - Tip
sudo hdparm -C /dev/sdXHdparm -C asks a disk if it's asleep without waking itShows whether a hard disk is spinning or in standby, for checking spin down settings.30 Nov 2026 - Tip
ethtool -S eth0 | grep -iE 'err|drop|miss|crc'ethtool -S shows the error counters that the Linux network card keeps itselfRead the card's own statistics to spot CRC errors, missed packets and other link trouble.30 Nov 2026 - Tip
pinoutThe pinout command draws the Raspberry Pi GPIO header in your terminalPrints a map of the GPIO header with physical pins, GPIO numbers and functions.28 Nov 2026 - Tip
vcgencmd bootloader_versionSudo rpi-eeprom-update tells you if your Raspberry Pi bootloader is outdatedReports whether the bootloader in the Pi's EEPROM has a newer version available.28 Nov 2026 - Tip
sudo cpufreq-set -g powersavesudo cpufreq-set -g powersave lowers the Raspberry Pi idle power useSwitches the CPU governor to powersave to cut idle power use.28 Nov 2026 - Tip
timedatectltimedatectl set-local-rtc 0 keeps the hardware clock in UTCStops the clock from jumping an hour after reboots by storing hardware time in UTC.27 Nov 2026 - Tip
sudo smartctl -l scterc /dev/sdaSmartctl -l scterc shows how long a disk keeps retrying a bad sectorShows and sets how long a hard disk retries a bad sector before it reports an error.27 Nov 2026 - Tip
journalctl /dev/sdajournalctl /dev/sda shows kernel messages about one diskShows only the journal entries about one device, such as a failing disk, for the current boot.26 Nov 2026 - Tip
journalctl -kfjournalctl -kf follows the kernel log liveFollows kernel messages live, handy while you plug in or remove hardware.26 Nov 2026 - Tip
sudo dmidecode -t memoryDmidecode -t memory shows which RAM is in your Linux box without opening itLists the memory slots, module sizes and speeds of a machine from the firmware tables.26 Nov 2026 - Tip
sudo sensors-detectRun sensors-detect once and sensors shows your server's temperatures and fan speedsDetects the hardware sensors on a Linux machine and then prints temperatures, voltages and fans.26 Nov 2026 - Tip
sudo smartctl -d sat -a /dev/sdbSmartctl -d sat reads smart data of a drive in a USB enclosureReads the smart data of a USB-attached drive by using SAT pass-through.5 Feb 2026 - Tip
sudo smartctl -a /dev/nvme0Smartctl -a on an NVMe drive shows wear and spare capacity in smartShows wear, spare capacity and error counts of an NVMe drive.2 Feb 2026
Other tips17
- Tip
include extraconfig.txtinclude in config.txt splits your Raspberry Pi settings over several filesThe include line pulls another file into config.txt, but a few boot settings must stay in the main file.3 Dec 2026 - Tip
enable_uart=1Enable_uart=1 gives a headless Raspberry Pi a serial consoleTurns on the serial console on the GPIO pins, so you can see boot messages without a monitor or network.3 Dec 2026 - Tip
disable_poe_fan=1Disable_poe_fan=1 skips an I2C probe at Raspberry Pi startupA config.txt line that stops the startup probe for a PoE HAT fan, which saves a little boot time.3 Dec 2026 - Tip
vcgencmd measure_clock armvcgencmd measure_clock arm shows the real CPU speed of a Raspberry PiReads the actual Arm clock in hertz, which can differ from the speed the kernel asked for.3 Dec 2026 - Tip
lsmem --summarylsmem --summary shows how much memory the kernel seesPrints the online and offline memory the kernel manages and the size of one memory block.2 Dec 2026 - Tip
upower -i /org/freedesktop/UPower/devices/battery_BAT0upower -i shows battery details on a Linux laptopLists power devices and prints detailed battery information from the command line.2 Dec 2026 - Tip
lspci -tlspci -t draws the PCI bus as a treeShows buses, bridges and devices as a tree, so you see what hangs off what.2 Dec 2026 - Tip
System Settings > Battery > Battery Health > (i)Check Battery Health on your MacBook before you replace anythingSee whether macOS calls the battery normal or asks for service.1 Dec 2026 - Tip
udevadm monitorudevadm monitor shows hardware events live while you plug things inWatch the system react the moment a device appears or disappears.1 Dec 2026 - Tip
Get-CimInstance Win32_BIOS | Select-Object Manufacturer, SMBIOSBIOSVersion, ReleaseDate, SerialNumberGet-CimInstance Win32_BIOS reads the hardware serial number of a PCGet the BIOS version and serial number without opening the case.1 Dec 2026 - Tip
modinfo -p usb_storagemodinfo -p lists the options a Linux kernel module acceptsFind the parameters a driver offers before copying one from a forum.1 Dec 2026 - Tip
powercfg /lastwakepowercfg /lastwake shows what woke your PCShows what woke the PC from sleep and which devices are allowed to wake it.28 Nov 2026 - Tip
dtparam=fan_temp0=55000Dtparam=fan_temp0=55000 keeps the Raspberry Pi 5 fan off until 55 degreesChanges the temperature at which the Pi 5 fan starts spinning.28 Nov 2026 - Tip
rpicam-still --timeout 30000 --timelapse 2000 -o timelapse/image%04d.jpgrpicam-still --timelapse 2000 takes a photo every two secondsCaptures a numbered series of still photos at a fixed interval for a time-lapse.28 Nov 2026 - Tip
vcgencmd pmic_read_adcvcgencmd pmic_read_adc shows the voltages and currents inside a Raspberry Pi 5Prints the readings of the Pi 5 power chip, including the 5V input voltage.28 Nov 2026 - Tip
kmsprint -mkmsprint -m lists the display modes your monitor offers to a Raspberry PiLists the resolutions and refresh rates the attached monitor supports.28 Nov 2026 - Tip
rpi-eeprom-configrpi-eeprom-config prints the bootloader settings of your Raspberry PiShows the boot settings stored in the Pi's bootloader EEPROM before you change them.28 Nov 2026
Storage5
- Tip
lsscsi -slsscsi -s lists your disks with their sizesLists SCSI-layer devices such as disks with capacity, in one line each.2 Dec 2026 - TipSee the XML behind a VM with the inline XML view in Unraid 7Shows the libvirt XML that your VM form choices produce, so you can see what each setting does.2 Dec 2026
- TipChoose where a new VM's disk image is created with Unraid's storage overrideLets you pick the location of a new VM's virtual disk instead of the default domains share.2 Dec 2026
- Tip
ls -l /dev/disk/by-id//dev/disk/by-id gives a disk a name that never changesUses a name based on model and serial number instead of sda or sdb, which can swap after a reboot.30 Nov 2026 - Tip
lsblk -d -o NAME,SIZE,ROTA,MODELlsblk -d -o NAME,ROTA tells an SSD from a spinning diskShows with one column whether each drive is a spinning disk or flash storage.24 Nov 2026
Network3
- Tip
rfkill listrfkill list shows whether Wi-Fi or Bluetooth is blocked by software or hardwareFind out why a radio refuses to turn on.1 Dec 2026 - Tip
ethtool -p eth1 10ethtool -p blinks the LED of a network port so you can find it in the rackMake the port light blink so you know which physical socket belongs to eth1.30 Nov 2026 - Tip
ethtool -i eth0ethtool -i shows the driver and firmware version behind a Linux network portFind out which driver and firmware a network card uses before you search for a bug.30 Nov 2026
Phone1
Posts1
Nothing matches.