Ubuntu list running services

Check all running services service –status-all | grep ‘\[ + \]’ Check all services (Running and Non Running) service –status-all

Stop apache server

# Apache 2 server on Linux/Unix – Start sudo service apache2 start # Apache 2 server on Linux/Unix – Restart sudo service apache2 restart # Apache 2 server on Linux/Unix – Stop sudo service apache2 stop

Docker delete all images

Option 1: docker rmi -f $(docker images -a -q) Option 2: List all containers (only IDs) docker ps -aq Stop all running containers docker stop $(docker ps -aq) Remove all containers docker rm $(docker ps -aq) Remove all images docker rmi $(docker images -q)