ubuntutorials

Every command, run on a real server first.

Ubuntu guides with no preamble and no filler. Each one is executed top to bottom on a clean server before it goes up, then re-run on a schedule so you find out when it breaks rather than the hard way.

unzip-a-file-on-ubuntu
$ uz run unzip-a-file-on-ubuntu
26.04 verified 7/7 Ubuntu 26.04 LTS · 7.0.0-27
24.04 verified 7/7 Ubuntu 24.04.4 LTS · 6.8.0-134
22.04 verified 7/7 Ubuntu 22.04.5 LTS · 5.15.0-185
VERIFIED on all 3 versions
verified 6 days ago

How to Add a User on Ubuntu and Give Them sudo

Create a user on Ubuntu, give them sudo rights, and set them up to log in with their own SSH key. Tested on 26.04, 24.04 and 22.04.

26.0424.0422.04 7 commands
verified today

How to Change the Hostname on Ubuntu

Rename an Ubuntu machine with hostnamectl, keep sudo quiet by fixing /etc/hosts, and stop cloud-init putting the old name back on the next reboot. Tested on 26.04, 24.04 and 22.04.

26.0424.0422.04 9 commands
verified today

How to Check Your Ubuntu Version

Find which Ubuntu release you're on, get the codename for a repository line, and tell an LTS from an interim release. Tested on 26.04, 24.04 and 22.04.

26.0424.0422.04 4 commands
verified 6 days ago

How to Create an SSH Key

Generate an ed25519 SSH key pair and find the public half to send on. Tested on Ubuntu 26.04, 24.04 and 22.04, with the macOS and Windows steps noted.

26.0424.0422.04 3 commands
verified today

How to Enable SSH on Ubuntu

Install and check the OpenSSH server on Ubuntu, add the firewall rule before you need it, and prove port 22 answers from another machine. Tested on 26.04, 24.04 and 22.04.

26.0424.0422.04 7 commands
verified 5 days ago

How to Install Apache2 on Ubuntu

Get Apache serving your own domain over HTTP, with the firewall opened and a virtual host that survives a second site. Tested on 26.04, 24.04 and 22.04.

26.0424.0422.04 15 commands
verified 6 days ago

How to List Users on Ubuntu

Show every account on an Ubuntu system, tell the people apart from the service accounts, and see who has sudo. Tested on 26.04, 24.04 and 22.04.

26.0424.0422.04 4 commands
verified today

How to Unzip a File on Ubuntu

Install unzip, extract an archive where you actually want it, look inside before you commit, and handle the overwrite prompt. Tested on 26.04, 24.04 and 22.04.

26.0424.0422.04 7 commands