List of LINUX commands! - Libbna/BLOG_SITE GitHub Wiki

  1. lsb_release -a

to check the ubuntu version

  1. sudo systemctl start apache2

to start the apache server

  1. sudo systemctl status apache2

to check the status of Apache. If it show active in green that means apache is successfully running.

  1. sudo systemctl stop apache2

to stop the apache server

  1. sudo systemctl restart apache2

to restart the server