Linux (Ubuntu) Server Management Cheatsheet


I started this post for my personal use. However, if you find it useful, you can use it.This post will be edited continuously.

  1. Start/Stop/Restart Apache Server:
sudo service apache2 restart/start/stop
  1. To check apache error log:
sudo grep -i invalid /var/log/apache2/error.log
  1. Start/Stop/Restart Mysql Server:
sudo service mysql restart/start/stop
  1. To check mysql error log:
sudo less /var/log/mysql/error.log
  1. To check current status of apache/mysql:
sudo systemctl status mysql/apache2
  1. To unzip a file (you must install unzip on your system)
unzip file_name.zip

Comments