how to get the status of apache on ubuntu code example Example: apache2 status sudo systemctl status apache2