↑ ↓ select, Enter open, Esc close

System and hardware

What is inside the server and how is it doing? Kernel and distribution, CPU, memory, disk health via SMART, temperatures, uptime and hardware errors in the kernel log.

20 one-liners: 19 harmless, 1 caution, 0 destructive

All System and hardware one-liners

Change swappiness at runtime

#sysctl vm.swappiness=10
caution

Check health and wear of an NVMe SSD

#nvme smart-log /dev/nvme0
harmless

Check system time, time zone and NTP sync

$timedatectl
harmless

Check the SMART health status of a disk

#smartctl -H /dev/sda
harmless

Detect whether the server is virtual or a container

$systemd-detect-virt
harmless

Show BIOS or UEFI version and date

#dmidecode -s bios-vendor && dmidecode -s bios-version && dmidecode -s bios-release-date
harmless

For the websites on your server

Free SEO and PageSpeed check

GENLOC.SEO analyzes any domain for load time, Core Web Vitals and on-page issues and tells you in plain words what is going on. Available in 11 languages.

by GENLOC.NETWORK, the team behind myline.de

Show CPU and hardware temperatures

$sensors
harmless

Show CPU model, cores and threads

$LC_ALL=C lscpu | grep -E '^\s*(Model name|CPU\(s\)|Thread\(s\) per core|Core\(s\) per socket|Socket\(s\)|Virtualization|Hypervisor vendor|L3)'
harmless

Show details of a software RAID array

#mdadm --detail /dev/md0
harmless

Show hardware errors and warnings in the kernel log

#dmesg -T --level=err,warn
harmless

Show installed RAM modules and free slots

#dmidecode -t memory | grep -E '^\s+(Size|Type|Speed|Locator|Manufacturer|Part Number):'
harmless

Show memory, swap areas and swappiness

$free -h && swapon --show && cat /proc/sys/vm/swappiness
harmless

Show network, RAID and storage controllers with driver

$lspci -k | grep -A3 -iE 'ethernet|raid|sata|sas|nvme|non-volatile'
harmless

Show operating system, kernel and hardware at a glance

$hostnamectl
harmless

Show server manufacturer, model and serial number

#dmidecode -s system-manufacturer && dmidecode -s system-product-name && dmidecode -s system-serial-number
harmless

Show SMART attributes of a disk

#smartctl -A /dev/sda
harmless

Show software RAID (mdadm) status

$cat /proc/mdstat
harmless

Show the running kernel and installed kernels

$uname -r && dpkg --list 'linux-image-[0-9]*' | awk '/^ii/ {print $2, $3}'
harmless

Show uptime and recent reboots

$uptime -p && last reboot | head -n 10
harmless

Start a SMART short self-test on a disk

#smartctl -t short /dev/sda
harmless

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.