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.
/proc is the live process filesystem (kernel status, not a real folder on disk). md is Multiple Device, Linux software RAID. stat is status. So cat /proc/mdstat means “print the multiple-device RAID status from the kernel.”
cat /proc/mdstat120 of 120 entries
Paths & devices
/proc/mdstatPROCess filesystem · Multiple Device STATusA 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 INFOrmationCPU model, cores, and flags (including vmx/svm for virtualization).
/proc/meminfoPROCess filesystem · MEMory INFOrmationDetailed RAM and swap numbers.
/dev/md0DEVice · Multiple Device 0A software RAID array as a virtual disk. Numbers: md0, md1, md2. On Hetzner, md2 is often the big root array.
/dev/sdaDEVice · SCSI Disk AFirst SATA/SAS disk. The sd prefix is historical (SCSI disk). Next disks: sdb, sdc. Partitions: sda1, sda2.
/dev/nvme0n1DEVice · NVMe controller 0, Namespace 1First NVMe SSD. Partitions add p: nvme0n1p1. A second NVMe is usually nvme1n1.
/etc/fstabETCetera · File System TABleList of filesystems Linux mounts at boot. Wrong UUIDs here can stop the server from booting.
/etc/os-releaseETCetera · Operating System releaseShows whether you are on Debian, Ubuntu, and which version.
Storage commands
lsblkLiSt BLocK devicesTree of disks, partitions, RAID, LVM, and mount points. First command to learn.
dfDisk FreeHow full each mounted filesystem is. -h = human (GiB), -T = type, -i = inodes.
duDisk UsageHow much space a folder uses. df is the tank; du is which boxes are heavy.
ncduNCurses Disk UsageInteractive du. NCurses is the text UI library. Arrow keys to browse folders.
mdadmMultiple Device ADMinCreate, stop, and inspect Linux software RAID arrays.
fdiskFixed / Format DISKInteractive partition editor. -l lists tables without changing them.
partedPARTition EDitorGNU partition tool. Handles GPT disks larger than 2 TiB.
mkfsMaKe FileSystemFormat a partition. mkfs.ext4, mkfs.xfs, mkfs.vfat. This erases data on that slice.
mkswapMaKe SWAPFormat a volume as swap (overflow RAM on disk).
mountMOUNT a filesystemAttach a filesystem to a folder, often /mnt in Rescue.
umountUnMOUNTDetach a filesystem. Spelled umount (no n) from old UNIX 6-character names.
findmntFIND MouNTsWhat is mounted where, in a tree.
blkidBLocK IDentifierPrints UUID and filesystem type. Use UUIDs in /etc/fstab.
wipefsWIPE FileSystem signaturesErase RAID/filesystem labels so installimage can reuse the disk. Destructive.
fsckFile System ChecKRepair a filesystem. Run from Rescue, not on a mounted disk.
resize2fsRESIZE ext2/3/4 FileSystemGrow (or shrink, carefully) an ext4 filesystem after LVM grow.
smartctlSMART ConTroLDisk health. SMART = Self-Monitoring, Analysis and Reporting Technology.
LVM
LVMLogical Volume ManagerA layer on a disk or RAID so you can grow volumes later without repartitioning everything.
PVPhysical VolumeA disk, partition, or RAID array given to LVM. Command: pvcreate, list: pvs.
VGVolume GroupA pool of PVs. Often named vg0. Command: vgcreate, list: vgs.
LVLogical VolumeA slice of a VG you format and mount, like vg0-root. Command: lvcreate, list: lvs.
pvcreatePhysical Volume CREATEMark a device as LVM physical volume.
vgcreateVolume Group CREATECreate a pool, e.g. vgcreate vg0 /dev/sda3.
lvcreateLogical Volume CREATECut a named volume from the pool.
lvextendLogical Volume EXTENDGrow an LV. -r also grows the filesystem.
pvs / vgs / lvsPhysical / Volume / Logical volumeSShort status lists for each LVM layer.
System & hardware
lsLiStShow files in a folder.
catconCATenatePrint a file to the screen. cat /proc/mdstat means “show RAID status”.
grepGlobal Regular Expression PrintFilter lines that match a pattern. egrep is grep -E (extended patterns).
lscpuLiSt CPUCPU model, cores, threads, architecture.
lshwLiSt HardWareInventory of the machine. Needs root for full detail.
lspciLiSt PCIPCI cards: NICs, NVMe, RAID. PCI = Peripheral Component Interconnect.
nprocNumber of PROCessorsHow many CPU threads Linux sees.
dmidecodeDMI DECODERead firmware tables. DMI = Desktop Management Interface (RAM size, manufacturer).
hostnamectlHOSTNAME ConTroLHostname, OS, kernel, virtualization.
timedatectlTIME and DATE ConTroLTimezone and clock.
systemctlSYSTemD ConTroLStart/stop services on modern Debian and Ubuntu.
journalctlJOURNAL ConTroLRead systemd logs. --disk-usage / --vacuum-time clean old logs.
unameUNix NAMEKernel name. uname -a is a full snapshot.
uptimeUP TIMEHow long the server has been running, plus load averages.
chmodCHange MODeChange file permissions.
chownCHange OWNerChange file owner/group.
chrootCHange ROOTRun commands as if a mounted disk were the live OS. Used in Rescue to reset passwd.
passwdPASSWorDSet a user’s password. Inside chroot it changes the installed OS, not Rescue.
sudoSuperUser DORun one command as root.
suSubstitute UserSwitch to another user, often root.
Memory, processes, I/O
freeFREE memoryRAM and swap. Trust available more than free. -h = human sizes.
psProcess StatusRunning programs. ps aux is “all users, extra detail”.
topTOP processesLive CPU/RAM table. Named for the top consumers, not an acronym.
htopHisham’s TOPFriendlier top (by Hisham Muhammad). Color, mouse, easier sorting.
vmstatVirtual Memory STATisticsRAM, swap, and I/O in one repeating snapshot.
iostatInput/Output STATisticsHow busy each disk is. %util near 100% means the disk is saturated.
iotopInput/Output TOPWhich process is doing the most disk I/O.
Network & login
sshSecure SHellEncrypted remote login. ssh root@IP from your laptop.
scpSecure CoPyCopy files over SSH.
ssh-keygenSSH KEY GENeratorCreate 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 CONFIGureOld network tool. Prefer ip on Debian and Ubuntu.
pingPacket INternet GroperTest if an IP answers.
curlClient URLFetch a URL from the command line.
wgetWeb GETDownload a file from HTTP/HTTPS.
Firewall & ports
ssSocket StatisticsSee listening ports and which process owns them. Replaces netstat. ss -tulpn is the usual check.
ufwUncomplicated FireWallBeginner firewall on Ubuntu/Debian. Writes iptables/nftables rules for you.
iptablesIP TABLESIPv4 packet filter and NAT rules. Tables: filter (allow/drop), nat (port forwarding).
nftables / nftNetFilter TABLESNewer kernel firewall. nft list ruleset shows the live policy. iptables may be a compatibility wrapper.
NATNetwork Address TranslationRewrite packet IPs/ports. Used to publish a VM through the host’s public IP.
DNATDestination NATChange where a packet is going (port forwarding to a guest IP).
SNAT / MASQUERADESource NATChange where a packet appears to come from so replies find their way back.
TCP / UDPTransmission Control Protocol / User Datagram ProtocolTwo separate port spaces. TCP 80 and UDP 80 can both be used at once.
INPUT / FORWARDiptables chainsINPUT = traffic to this host. FORWARD = traffic through this host to a VM.
Packages & editing
aptAdvanced Package ToolDebian/Ubuntu installer. apt update then apt upgrade or apt install.
dpkgDebian PacKaGeLow-level package tool under apt.
nanoNANO’s ANOther editorSimple text editor. Ctrl+O save, Ctrl+X exit.
vimVi IMprovedEditor. Press i to type, Esc then :wq to save and quit.
tmuxTerminal MUltipleXerKeep sessions alive if SSH drops.
tarTape ARchivePack or unpack .tar.gz files. The name is from magnetic tape.
gzipGNU ZIPCompress a file. GNU = GNU’s Not Unix.
installimageHetzner INSTALL IMAGEHetzner Rescue installer for Ubuntu/Debian, RAID, and partitions. Not a UNIX acronym.
Acronyms
RAIDRedundant Array of Independent DisksSeveral disks acting as one. Not a backup.
GPTGUID Partition TableModern partition map. Needed for disks larger than 2 TiB. GUID = Globally Unique Identifier.
MBRMaster Boot RecordOld partition map. Avoid on big dedicated disks.
UEFI / EFIUnified Extensible Firmware InterfaceModern firmware instead of BIOS. EFI is the older name.
ESPEFI System PartitionSmall FAT32 partition, usually /boot/efi, that UEFI boots from.
BIOSBasic Input/Output SystemOlder firmware. Some Hetzner boxes still boot this way (legacy).
PXEPreboot eXecution EnvironmentBoot from the network. How Hetzner Rescue starts, from RAM, not from your disks.
NVMeNon-Volatile Memory ExpressFast SSD on the PCI bus. Device names look like /dev/nvme0n1.
SATASerial ATACommon disk cable/protocol. ATA = Advanced Technology Attachment. Devices often /dev/sdX.
SSD / HDDSolid State Drive / Hard Disk DriveFlash vs spinning platter. lsblk ROTA 0 = SSD/NVMe, 1 = HDD.
UUIDUniversally Unique IDentifierStable ID for a filesystem. Prefer this over /dev/sda3 in fstab.
CPU / RAMCentral Processing Unit / Random Access MemoryProcessor and working memory.
OSOperating SystemDebian, Ubuntu, Proxmox, and so on.
SSHSecure SHellHow you log in remotely.
IP / DNSInternet Protocol / Domain Name SystemAddress of the server, and names that point to addresses.
TCP / UDPTransmission Control Protocol / User Datagram ProtocolTwo separate port spaces. TCP 80 and UDP 80 can both be used at once.
KVMKernel-based Virtual MachineLinux hypervisor for VMs (Proxmox uses this). Hetzner “KVM console” instead means Keyboard-Video-Mouse remote screen.
LXCLinuX ContainersSystem containers. Proxmox and Incus can run these.
VMVirtual MachineA full guest OS on the dedicated host.
GRUBGRand Unified BootloaderStarts Linux from the disk. installimage installs GRUB2.
CLI / TUICommand Line Interface / Text User InterfaceTyped 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 / FormatDepends on the command. wipefs -f is force. lsblk -f shows filesystems.
-yYesapt install -y does not ask “are you sure?”
-iInodes / interactivedf -i shows inode use (number of files), not bytes.
-TTypedf -hT adds the filesystem type column (ext4, xfs).
-vVerbosePrint extra detail. mdadm --verbose while creating RAID.
-nNo-op / dry run / numberwipefs -n only shows what it would erase.
-rRecursive / resize filesystemlvextend -r grows the filesystem with the volume.
-oOutput columns / optionslsblk -o NAME,SIZE,TYPE chooses columns.
-brBRiefip -br a is a short address list.
-x / -xdeveXclude other filesystemsfind -xdev stays on one disk so you do not walk into /mnt by accident.