systemctl status apache2.service and journalctl code example Example: systemctl status apache2.service journalctl | tail