HetznerDocs

Search documentation

Find a Hetzner dedicated Linux topic

Short commands, long names

Linux keeps old short names from UNIX: six letters on a teletype, not a sentence. This page expands every short form used in these guides.

RAID status is just a text file

cat /proc/mdstat

120 of 120 entries

Paths & devices

/proc/mdstatPROCess filesystem · Multiple Device STATus

A kernel file that reports software RAID. /proc is a live view of the running system (not a normal disk folder). md = Multiple Device, Linux’s name for software RAID. stat = status.

/proc/cpuinfoPROCess filesystem · CPU INFOrmation

CPU model, cores, and flags (including vmx/svm for virtualization).

/proc/meminfoPROCess filesystem · MEMory INFOrmation

Detailed RAM and swap numbers.

/dev/md0DEVice · Multiple Device 0

A software RAID array as a virtual disk. Numbers: md0, md1, md2. On Hetzner, md2 is often the big root array.

/dev/sdaDEVice · SCSI Disk A

First SATA/SAS disk. The sd prefix is historical (SCSI disk). Next disks: sdb, sdc. Partitions: sda1, sda2.

/dev/nvme0n1DEVice · NVMe controller 0, Namespace 1

First NVMe SSD. Partitions add p: nvme0n1p1. A second NVMe is usually nvme1n1.

/etc/fstabETCetera · File System TABle

List of filesystems Linux mounts at boot. Wrong UUIDs here can stop the server from booting.

/etc/os-releaseETCetera · Operating System release

Shows whether you are on Debian, Ubuntu, and which version.

Storage commands

lsblkLiSt BLocK devices

Tree of disks, partitions, RAID, LVM, and mount points. First command to learn.

dfDisk Free

How full each mounted filesystem is. -h = human (GiB), -T = type, -i = inodes.

duDisk Usage

How much space a folder uses. df is the tank; du is which boxes are heavy.

ncduNCurses Disk Usage

Interactive du. NCurses is the text UI library. Arrow keys to browse folders.

mdadmMultiple Device ADMin

Create, stop, and inspect Linux software RAID arrays.

fdiskFixed / Format DISK

Interactive partition editor. -l lists tables without changing them.

partedPARTition EDitor

GNU partition tool. Handles GPT disks larger than 2 TiB.

mkfsMaKe FileSystem

Format a partition. mkfs.ext4, mkfs.xfs, mkfs.vfat. This erases data on that slice.

mkswapMaKe SWAP

Format a volume as swap (overflow RAM on disk).

mountMOUNT a filesystem

Attach a filesystem to a folder, often /mnt in Rescue.

umountUnMOUNT

Detach a filesystem. Spelled umount (no n) from old UNIX 6-character names.

findmntFIND MouNTs

What is mounted where, in a tree.

blkidBLocK IDentifier

Prints UUID and filesystem type. Use UUIDs in /etc/fstab.

wipefsWIPE FileSystem signatures

Erase RAID/filesystem labels so installimage can reuse the disk. Destructive.

fsckFile System ChecK

Repair a filesystem. Run from Rescue, not on a mounted disk.

resize2fsRESIZE ext2/3/4 FileSystem

Grow (or shrink, carefully) an ext4 filesystem after LVM grow.

smartctlSMART ConTroL

Disk health. SMART = Self-Monitoring, Analysis and Reporting Technology.

LVM

LVMLogical Volume Manager

A layer on a disk or RAID so you can grow volumes later without repartitioning everything.

PVPhysical Volume

A disk, partition, or RAID array given to LVM. Command: pvcreate, list: pvs.

VGVolume Group

A pool of PVs. Often named vg0. Command: vgcreate, list: vgs.

LVLogical Volume

A slice of a VG you format and mount, like vg0-root. Command: lvcreate, list: lvs.

pvcreatePhysical Volume CREATE

Mark a device as LVM physical volume.

vgcreateVolume Group CREATE

Create a pool, e.g. vgcreate vg0 /dev/sda3.

lvcreateLogical Volume CREATE

Cut a named volume from the pool.

lvextendLogical Volume EXTEND

Grow an LV. -r also grows the filesystem.

pvs / vgs / lvsPhysical / Volume / Logical volumeS

Short status lists for each LVM layer.

System & hardware

lsLiSt

Show files in a folder.

catconCATenate

Print a file to the screen. cat /proc/mdstat means “show RAID status”.

grepGlobal Regular Expression Print

Filter lines that match a pattern. egrep is grep -E (extended patterns).

lscpuLiSt CPU

CPU model, cores, threads, architecture.

lshwLiSt HardWare

Inventory of the machine. Needs root for full detail.

lspciLiSt PCI

PCI cards: NICs, NVMe, RAID. PCI = Peripheral Component Interconnect.

nprocNumber of PROCessors

How many CPU threads Linux sees.

dmidecodeDMI DECODE

Read firmware tables. DMI = Desktop Management Interface (RAM size, manufacturer).

hostnamectlHOSTNAME ConTroL

Hostname, OS, kernel, virtualization.

timedatectlTIME and DATE ConTroL

Timezone and clock.

systemctlSYSTemD ConTroL

Start/stop services on modern Debian and Ubuntu.

journalctlJOURNAL ConTroL

Read systemd logs. --disk-usage / --vacuum-time clean old logs.

unameUNix NAME

Kernel name. uname -a is a full snapshot.

uptimeUP TIME

How long the server has been running, plus load averages.

chmodCHange MODe

Change file permissions.

chownCHange OWNer

Change file owner/group.

chrootCHange ROOT

Run commands as if a mounted disk were the live OS. Used in Rescue to reset passwd.

passwdPASSWorD

Set a user’s password. Inside chroot it changes the installed OS, not Rescue.

sudoSuperUser DO

Run one command as root.

suSubstitute User

Switch to another user, often root.

Memory, processes, I/O

freeFREE memory

RAM and swap. Trust available more than free. -h = human sizes.

psProcess Status

Running programs. ps aux is “all users, extra detail”.

topTOP processes

Live CPU/RAM table. Named for the top consumers, not an acronym.

htopHisham’s TOP

Friendlier top (by Hisham Muhammad). Color, mouse, easier sorting.

vmstatVirtual Memory STATistics

RAM, swap, and I/O in one repeating snapshot.

iostatInput/Output STATistics

How busy each disk is. %util near 100% means the disk is saturated.

iotopInput/Output TOP

Which process is doing the most disk I/O.

Network & login

sshSecure SHell

Encrypted remote login. ssh root@IP from your laptop.

scpSecure CoPy

Copy files over SSH.

ssh-keygenSSH KEY GENerator

Create keys, or ssh-keygen -R IP to forget an old host key after reinstall.

ipInternet Protocol (iproute2)

Modern network tool. ip a addresses, ip r routes, -br brief.

ifconfigInterFace CONFIGure

Old network tool. Prefer ip on Debian and Ubuntu.

pingPacket INternet Groper

Test if an IP answers.

curlClient URL

Fetch a URL from the command line.

wgetWeb GET

Download a file from HTTP/HTTPS.

Firewall & ports

ssSocket Statistics

See listening ports and which process owns them. Replaces netstat. ss -tulpn is the usual check.

ufwUncomplicated FireWall

Beginner firewall on Ubuntu/Debian. Writes iptables/nftables rules for you.

iptablesIP TABLES

IPv4 packet filter and NAT rules. Tables: filter (allow/drop), nat (port forwarding).

nftables / nftNetFilter TABLES

Newer kernel firewall. nft list ruleset shows the live policy. iptables may be a compatibility wrapper.

NATNetwork Address Translation

Rewrite packet IPs/ports. Used to publish a VM through the host’s public IP.

DNATDestination NAT

Change where a packet is going (port forwarding to a guest IP).

SNAT / MASQUERADESource NAT

Change where a packet appears to come from so replies find their way back.

TCP / UDPTransmission Control Protocol / User Datagram Protocol

Two separate port spaces. TCP 80 and UDP 80 can both be used at once.

INPUT / FORWARDiptables chains

INPUT = traffic to this host. FORWARD = traffic through this host to a VM.

Packages & editing

aptAdvanced Package Tool

Debian/Ubuntu installer. apt update then apt upgrade or apt install.

dpkgDebian PacKaGe

Low-level package tool under apt.

nanoNANO’s ANOther editor

Simple text editor. Ctrl+O save, Ctrl+X exit.

vimVi IMproved

Editor. Press i to type, Esc then :wq to save and quit.

tmuxTerminal MUltipleXer

Keep sessions alive if SSH drops.

tarTape ARchive

Pack or unpack .tar.gz files. The name is from magnetic tape.

gzipGNU ZIP

Compress a file. GNU = GNU’s Not Unix.

installimageHetzner INSTALL IMAGE

Hetzner Rescue installer for Ubuntu/Debian, RAID, and partitions. Not a UNIX acronym.

Acronyms

RAIDRedundant Array of Independent Disks

Several disks acting as one. Not a backup.

GPTGUID Partition Table

Modern partition map. Needed for disks larger than 2 TiB. GUID = Globally Unique Identifier.

MBRMaster Boot Record

Old partition map. Avoid on big dedicated disks.

UEFI / EFIUnified Extensible Firmware Interface

Modern firmware instead of BIOS. EFI is the older name.

ESPEFI System Partition

Small FAT32 partition, usually /boot/efi, that UEFI boots from.

BIOSBasic Input/Output System

Older firmware. Some Hetzner boxes still boot this way (legacy).

PXEPreboot eXecution Environment

Boot from the network. How Hetzner Rescue starts, from RAM, not from your disks.

NVMeNon-Volatile Memory Express

Fast SSD on the PCI bus. Device names look like /dev/nvme0n1.

SATASerial ATA

Common disk cable/protocol. ATA = Advanced Technology Attachment. Devices often /dev/sdX.

SSD / HDDSolid State Drive / Hard Disk Drive

Flash vs spinning platter. lsblk ROTA 0 = SSD/NVMe, 1 = HDD.

UUIDUniversally Unique IDentifier

Stable ID for a filesystem. Prefer this over /dev/sda3 in fstab.

CPU / RAMCentral Processing Unit / Random Access Memory

Processor and working memory.

OSOperating System

Debian, Ubuntu, Proxmox, and so on.

SSHSecure SHell

How you log in remotely.

IP / DNSInternet Protocol / Domain Name System

Address of the server, and names that point to addresses.

TCP / UDPTransmission Control Protocol / User Datagram Protocol

Two separate port spaces. TCP 80 and UDP 80 can both be used at once.

KVMKernel-based Virtual Machine

Linux hypervisor for VMs (Proxmox uses this). Hetzner “KVM console” instead means Keyboard-Video-Mouse remote screen.

LXCLinuX Containers

System containers. Proxmox and Incus can run these.

VMVirtual Machine

A full guest OS on the dedicated host.

GRUBGRand Unified Bootloader

Starts Linux from the disk. installimage installs GRUB2.

CLI / TUICommand Line Interface / Text User Interface

Typed commands vs menu screens (installimage uses a TUI).

Common flags

-hHuman-readable (or Help)

On df, du, free: sizes in G/M. On many other tools: show help.

-aAll (or automatic)

installimage -a runs without the menu. ls -a shows hidden files.

-lList (or long)

fdisk -l lists partitions. ls -l is the long listing.

-fForce / Filesystem / Format

Depends on the command. wipefs -f is force. lsblk -f shows filesystems.

-yYes

apt install -y does not ask “are you sure?”

-iInodes / interactive

df -i shows inode use (number of files), not bytes.

-TType

df -hT adds the filesystem type column (ext4, xfs).

-vVerbose

Print extra detail. mdadm --verbose while creating RAID.

-nNo-op / dry run / number

wipefs -n only shows what it would erase.

-rRecursive / resize filesystem

lvextend -r grows the filesystem with the volume.

-oOutput columns / options

lsblk -o NAME,SIZE,TYPE chooses columns.

-brBRief

ip -br a is a short address list.

-x / -xdeveXclude other filesystems

find -xdev stays on one disk so you do not walk into /mnt by accident.