ubuntu, updated

Stuck? Where to get help

Built-in help (man, --help, apropos), quick example sites, and where to look when something is broken.

On the server itself

You almost never need the internet to find out how a command works.

WhatCommand
Short help of a commandls --help
Full manualman ls
Search inside a man pageinside man: /word, then n for next, q to quit
I don’t know the command nameapropos partition (same as man -k)
What is this command?type ll, which nano
One-line descriptionwhatis lsblk
Help for shell built-ins (cd, export…)help cd
Package documentationls /usr/share/doc/PACKAGE

Man pages have sections. man 5 crontab shows the file format, man 1 crontab the command. Section 8 is admin commands.

Examples instead of manuals

Man pages explain every option but rarely show a simple example. For that:

When something is broken

The error is almost always in a log. Start here:

systemctl --failed                     # which services are down?
systemctl status SERVICE               # state plus the last log lines
journalctl -u SERVICE -n 50            # last 50 log lines of a service
journalctl -p err -b                   # all errors since boot
dmesg -T | tail -30                    # kernel: disks, drivers, hardware

More in Where are the logs? and Searching logs.

Online

Tip: When you search for an error, paste the exact message in quotes and add your Ubuntu version (lsb_release -a or cat /etc/os-release).

§ home
~/knubertus/home/
1,1 Top