Linux Lite stores system logs in /var/log/.
Important log files:
/var/log/syslog: General system messages/var/log/dmesg: Kernel ring buffer/var/log/auth.log: Authentication events/var/log/apt/: Package manager logs/var/log/Xorg.0.log: Display server logsUse less, cat, or tail to read logs:
sudo less /var/log/syslog
Task Manager in Linux Lite offers a graphical view of running processes and system usage.
To open:
You can:
For a more detailed graphical interface, install System Monitor via Lite Software or Synaptic.
top, htop, journalctltop:
A built-in terminal tool that shows real-time system resource usage.
top
Press q to quit.
htop:
A more interactive version of top with better visuals. Install it using:
sudo apt install htop
htop
journalctl:
Used to query logs from systemd.
Examples:
journalctl # View all logs
journalctl -b # Logs from current boot
journalctl -u servicename.service # Logs for a specific service
journalctl -xe # View recent critical logs
Use arrows or PgUp/PgDn to scroll.
Linux Lite uses systemd as its init system to manage services during boot and runtime.
Key systemctl commands:
systemctl status # Overview of services
systemctl status ssh # Status of specific service
systemctl start service # Start a service
systemctl stop service # Stop a service
systemctl restart service # Restart a service
Check all enabled services:
systemctl list-units --type=service
To enable a service at boot:
sudo systemctl enable service
To disable a service from starting at boot:
sudo systemctl disable service
These commands are essential for managing background daemons such as networking, printing, or cron jobs.
To analyze boot performance:
systemd-analyze
To see which services slow down boot:
systemd-analyze blame
You can disable unused services using systemctl to speed up boot time. Exercise caution—disabling essential services can break functionality.