November 2019

All posts from November 2019

How to zip all files in a directory in Ubuntu

Linux zip command can be used to zip all files in a directory. Just write down below command in terminal and it will zip all file in directorytozip.  -r option will make sure that all files including dot files zipped recursively.

 zip -r filename.zip /directorytozip  
Read more
adminHow to zip all files in a directory in Ubuntu

How to Start, Restart, Stop Apache and MySQL on Latest version of Ubuntu

Ubuntu is one of the most used Linux derivative. I also use Ubuntu to deploy websites on Cloud servers. Here are quick snippets to manage Apache http server and MySQL database server.

Managing Apache Server

Starting Apache

sudo service apache2 start

Restarting Apache

sudo service apache2 restart

Stopping Apache

sudo service apache2 stop

In same way MySQL Database server can also be managed.

Starting MySQL

sudo service mysql start

Restarting MySQL

sudo service mysql restart

Stopping MySQL

sudo service mysql stop
Read more
adminHow to Start, Restart, Stop Apache and MySQL on Latest version of Ubuntu