Command cheat sheet
Same commands as the guides, grouped for a second screen while you are SSH’d into Rescue or the installed OS.
Tip
SSH
ssh root@YOUR.SERVER.IPssh -p 222 root@YOUR.SERVER.IPssh-keygen -R YOUR.SERVER.IPRescue
installimagelsblkcat /proc/mdstatmount /dev/md2 /mntmount /dev/mapper/vg0-root /mntchroot-prepare /mntchroot /mntpasswdmdadm --stop /dev/md*wipefs -fa /dev/sd*wipefs -fa /dev/nvme*n1rebootSee disks and RAID
lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,UUIDlsblk -fcat /proc/mdstatmdadm --detail /dev/md2pvs; vgs; lvsparted -lblkidfindmntPartitioning
parted /dev/sda printfdisk -llvextend -r -L +20G /dev/vg0/rootlvextend -r -l +100%FREE /dev/vg0/varSpecs
hostnamectllscpunprocfree -hdmidecode -t memory | grep Sizelsblk -d -o NAME,SIZE,MODEL,ROTA,TRANsmartctl -a /dev/nvme0n1lspci | grep -i -E 'raid|nvme|ethernet'ip -br aip rDisk space and RAM
df -hTdf -idu -h --max-depth=1 / 2>/dev/null | sort -hncdu /free -hhtopps aux --sort=-%mem | headiostat -xz 1 5journalctl --disk-usageFirewall and ports
ss -tulpnufw status verboseufw allow OpenSSHiptables -L -n -viptables -t nat -L -n -vnft list rulesetUbuntu / Debian after install
passwdapt updateapt upgrade -yapt install -y sudo vim htop tmux curl ca-certificatestimedatectl