Watching

Watching: Reading System Logs, Services: systemctl, Is It Healthy? Memory, Load and Uptime.

Updated

  1. Reading System Logs (Journeyman): Programs on a Linux computer write down what happens in logs, the files in /var/log and systemd's journal; journalctl -u shows one service's lines, -f watches new ones arrive, and on a Mac log show and the Console app do the same job.
  2. Services: systemctl (Journeyman): A service is a program that runs in the background with no window and starts when the computer does; on Linux, systemd runs them, systemctl status shows whether one is running, and sudo systemctl start, stop, restart, enable and disable change it now or at every start-up.
  3. Is It Healthy? Memory, Load and Uptime (Journeyman): uptime says how long a computer has been running and how busy it is, which you compare with the number of CPUs nproc prints; free -h says how much memory is still available and df -h how much disk is left; and a short script puts them all on one screen.