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 How to zip all files in a directory in Ubuntu 11.30.2019
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
sudo service apache2 start
sudo service apache2 restart
sudo service apache2 stop
In same way MySQL Database server can also be managed.
sudo service mysql start
sudo service mysql restart
sudo service mysql stop
Read more How to Start, Restart, Stop Apache and MySQL on Latest version of Ubuntu 11.27.2019
To enable Root Login to Google Cloud, Please follow these instructions.
Open SSH configuration file nano /etc/ssh/sshd_config
Enable Root login and Password Authentication. PermitRootLogin yes
Restart SSH server systemctl restart sshd
Set root password if not set already passwd root
Read more How to Enable Root Login to Google Cloud vis SSH 07.15.2019
Hostname can be changed in Ubuntu 17.4 manually by editing this files
and then restarting Hostname Service by
service hostname restart
It sometimes produces errors like
Failed to restart hostname.service: Unit hostname.service is masked.
Best Method for new versions of Ubuntu is:
sudo hostnamectl set-hostname NewHostName
Its work very well and produces no error.
Read more How to change hostname in Ubuntu 17.04 Zesty Zapus 12.01.2018