State, PID and recent logs
Cheat sheet · 12 commands
System & services
On almost every modern distribution, services are run by systemd. systemctl starts, stops and inspects them; journalctl reads their logs; cron still handles the scheduled jobs.
The 3 you will use every day
Follow one service's logs live
Start now and at every boot
The full sheet
- State, PID and recent logsguide ›
- Restart a serviceguide ›
- Start now and at every bootguide ›
- Anything broken on this machine?guide ›
- Follow one service's logs liveguide ›
- Everything the system did in a time windowguide ›
- Errors since boot, all sourcesguide ›
- Refresh the catalog, then patchguide ›
- Install with dependenciesguide ›
- Edit / list scheduled jobsguide ›
- Cron line: every day at 03:00guide ›
- Load, kernel version, CPU count
Practise these for real in the interactive course,
or keep every sheet, chapter and fix in one book: The Linux Command Line Handbook.