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.

Two disks mirroring the same data, which is what /proc/mdstat reports
Picture: md in /proc/mdstat means this mirror. [UU] means both copies are Up.

RAID status is just a text file

cat /proc/mdstat

What you should see

Personalities : [raid1]md2 : active raid1 nvme0n1p3[0] nvme1n1p3[1]      498860032 blocks super 1.2 [2/2] [UU]unused devices: <none>

[UU] = both disks Up. The short names on this page are what those letters stood for in the first place.

138 of 138 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, sometimes md127. On Hetzner, md2 is often the big array — root may still be LVM on top (vg0-root), not md2 itself.

/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.

/dev/mapper/DEVice · MAPPER

Friendly names for Device Mapper volumes: vg0-root (LVM), cryptroot (LUKS), mpatha (multipath). Same objects also appear as /dev/dm-0, dm-1. In Rescue, ls /dev/mapper/ then mount the top of the stack.

/dev/vdaDEVice · Virtio Disk A

First disk inside a KVM/Proxmox/Incus guest. Partitions: vda1, vda2. On the dedicated host you still see nvme or sd devices.

/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.

inodeIndex NODE

The file’s ID on a filesystem. Stores type, permissions, owner, size, timestamps, hard-link count, and pointers to data blocks. The name lives in the directory. ls -li prints the number. Hard links share one inode.

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.btrfs, mkfs.vfat. This erases data on that slice. The partition type (83 / Linux filesystem) is only a label — mkfs is the real format.

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. In Rescue, findmnt / is Rescue’s RAM root until you mount the OS at /mnt.

blkidBLocK IDentifier

Prints UUID and filesystem type. Use UUIDs in /etc/fstab. In Rescue, pair with lsblk -f to see RAID, LVM, and LUKS layers.

cryptsetupCRYPT SETUP

Unlock or inspect LUKS encrypted disks. cryptsetup luksDump /dev/sdX shows the header. luksOpen creates /dev/mapper/cryptroot. Not used by a default Hetzner installimage.

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.

xfs_growfsXFS GROW FileSystem

Grow an XFS filesystem while it is mounted. There is no supported XFS shrink.

xfs_repairXFS REPAIR

Repair an XFS filesystem. Run from Rescue, not while it is mounted.

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. Ubuntu installer names can look like ubuntu--vg-root (dashes doubled).

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. ls -l is the long listing. ls -li adds inode numbers. ls -lah includes hidden files and human sizes.

statSTATus

Print full metadata for one file: size, inode, mode, owner, and timestamps. ls -l is the summary; stat is the card.

pwdPrint Working Directory

Show the folder you are in before you run ls.

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. Often one layer under LVM (md2 → vg0-root).

LUKSLinux Unified Key Setup

Disk encryption. Appears as crypto_LUKS in lsblk -f until you unlock it to /dev/mapper/cryptroot. Not the Hetzner installimage default.

dmDevice Mapper

Kernel layer that builds virtual block devices. LVM, LUKS, and multipath all show up as /dev/dm-N. Use the /dev/mapper/ name when you can.

GPTGUID Partition Table

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

MBRMaster Boot Record

Old partition map. Max 2 TB and 4 primary partitions. Avoid on big dedicated disks.

ext2Second Extended Filesystem

Oldest common Linux format still in the tools. First Linux filesystem that could manage about 2 TB. No journal: after a crash, fsck must scan the whole disk. Do not use for a new Hetzner OS install.

ext3Third Extended Filesystem

ext2 plus a journal for fast crash recovery. Backward compatible with ext2. No snapshots and no easy undelete — pick ext4 on a new dedicated server.

ext4Fourth Extended Filesystem

The usual Ubuntu/Debian format on Hetzner (installimage default). Journal, extents, delayed allocation, journal checksums, multi-block allocation, online grow. Can mount old ext2/ext3 volumes; old ext2/ext3 drivers cannot mount a modern ext4 volume.

XFSXFS (name, not an acronym people expand)

Mature 64-bit journaling filesystem from SGI. Default on RHEL 7+. Delayed allocation, dynamic inodes, online grow (no shrink), xfs_repair. Strong for large files and /var.

BtrfsB-tree File System (“butter FS”)

Copy-on-write filesystem with snapshots, data checksums, compression, and subvolumes. Useful later for an Incus pool. Keep the OS on ext4/XFS unless you specifically want those features.

CoWCopy-on-Write

Btrfs (and similar filesystems) never overwrite a block in place. That is how snapshots stay cheap and consistent.

journalFilesystem journal (write-ahead log)

A short diary of upcoming writes. After a crash, Linux replays it instead of scanning the whole disk. ext3/ext4 and XFS have one. ext2 does not. Btrfs uses copy-on-write instead.

83 / 8e / fdMBR partition type codes

One-byte labels: 83 = Linux, 8e = Linux LVM, fd = Linux RAID, 82 = swap. GPT uses names like “Linux filesystem” instead. Labels are not the filesystem — mkfs still creates ext4/XFS/Btrfs.

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. ls -li prints each file’s inode number.

-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.